I' am trying to use the If statement to control the default property of a toggle. I feel like im close im just missing something. I'am using Microsoft List as my data source, I started with;
LookUp('MANC Plant Dashboard Controls', ID=1, {Control: "1"});
Set(varReclaimToggle,true);
LookUp('MANC Plant Dashboard Controls', ID=1, {Control: "0"});
Set(varReclaimToggle,false);
I have then been trying to figure out how to use the "IF" statement just to read "Control value" on the ID row. So my formulas got real bizarre real fast trying to make it work.
If('MANC Plant Dashboard Controls', ID=1, {Control.value="1"}),
Set(varReclaimToggle,true),Set(varReclaimToggle,false);
My global variable is on the default property on the toggle switch, This formula I' am running off a timer so every so often it reached out to the data source to see the current status of the control value to make it either on or off. Just don't know how to correctly code what I want it to do. Any help would be appreciated. Thanks.