Evaluate a boolean Expression within a variable? - Solved
Posted: Fri Dec 23, 2022 7:23 pm
I am unable to Evaluate a boolean Expression within a variable.
(Craig, I can't find the code tag)
My code:
The contents of the TransposeOutputlogic is:
InputTable[3] and ((InputTable[0]) or (((InputTable[0]) or (InputTable[0])))) and InputTable[1] and InputTable[2] and InputTable[4]
-------- Does Not Work ----------
Code 1
if TransposeOutputlogic = true then
answer "Yes"
end if
-------- Works ----------
Code 2
if InputTable[3] and ((InputTable[0]) or (((InputTable[0]) or (InputTable[0])))) and InputTable[1] and InputTable[2] and InputTable[4] = true then
answer "Yes"
end if
Why is the Boolean expression within my variable TransposeOutputlogic not working?
Thanks,
David
(Craig, I can't find the code tag)
My code:
The contents of the TransposeOutputlogic is:
InputTable[3] and ((InputTable[0]) or (((InputTable[0]) or (InputTable[0])))) and InputTable[1] and InputTable[2] and InputTable[4]
-------- Does Not Work ----------
Code 1
if TransposeOutputlogic = true then
answer "Yes"
end if
-------- Works ----------
Code 2
if InputTable[3] and ((InputTable[0]) or (((InputTable[0]) or (InputTable[0])))) and InputTable[1] and InputTable[2] and InputTable[4] = true then
answer "Yes"
end if
Why is the Boolean expression within my variable TransposeOutputlogic not working?
Thanks,
David