Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I programatically use the forced values to put a value into numeric data member?

I am extremely new at using Lookout and need a way to programmatically force a value into a numeric data member so that I can later use that value as a flag when creating a report.
0 Kudos
Message 1 of 3
(2,914 Views)


Hi,

You can do this with an Expression similar to the following:

Object.datamember = if(Pb1, Pot1, Object.datamember)

Where Object.datamember is the datamember of the Object you want to write to.

Pb1, is a PushButton -- it can be any logical condition.

Pot1, is a Pot -- it can be any other source for your numeric data.

The IF statement basically says, "if Pushbutton Pb1 is pressed, write the current value of Pot1 to the Object's datamember. And if it's not pressed, leave its value as-is."

Hope this helps.

Regards,

Khalid 🙂


0 Kudos
Message 2 of 3
(2,914 Views)
Thanks Khalid.
0 Kudos
Message 3 of 3
(2,914 Views)