I want to calculate a book status with a formulea.
I tried this one but It doesn’t works :
|| is for OR condition is it correct?
Code: Select all
If ([SIMCONNECT:INDICATED ALTITUDE] - 50 = [SIMCONNECT:AUTOPILOT ALTITUDE LOCK VAR]
||
[SIMCONNECT:INDICATED ALTITUDE] + 50.00 = [SIMCONNECT:AUTOPILOT ALTITUDE LOCK VAR] ,
1,
0
)
I want to set the result of my expression to 1 if indicated altitude more or less than 50ft equals to autopilot altitude lock var.
After that, I want to use this expression like a variable.
But when I try, I can’t see any variable change... always equal to zero...
Maybe my expression is bad?
Thanx for your help,