1) Give a description of the problem
I’m trying to incriment a variable based on a value returned from a function, its always returning “0”. This is related to another post, but was advised it would be better to start a new thread. Also cleaned up the code for simplicy
2) What is the expected behavior?
Variable gets incrimented
3) What is happening/not happening?
Variable stays at 0
**4) Post a Green Snapshot of the piston![image|45x37]
Here is a ss of my expression
5) Attach any logs (From ST IDE and by turning logging level to Full)
( 9/20/2018, 2:41:03 PM +91ms
+226ms ║Visibility variable is: 0
+361ms ║Weather visibitly is: 10.0
+387ms ║Visiblity is now: 0
9/20/2018, 2:40:59 PM +51ms
+198ms ║Visibility variable is: 0
+341ms ║Weather visibitly is: 10.0
+371ms ║Visiblity is now: 0
9/20/2018, 2:40:55 PM +112ms
+221ms ║Visibility variable is: 0
+361ms ║Weather visibitly is: 10.0
+386ms ║Visiblity is now: 0)