Search found 2 matches

by licensing
Tue Dec 27, 2022 4:54 pm
Forum: Bug Reports
Topic: Inverting a bool inconsistent using NOT (Flowcode 7)
Replies: 2
Views: 1010

Re: Inverting a bool inconsistent using NOT (Flowcode 7)

LtoR = !(LtoR) works correctly in simulation and generated code.
by licensing
Tue Dec 27, 2022 4:51 pm
Forum: Bug Reports
Topic: Inverting a bool inconsistent using NOT (Flowcode 7)
Replies: 2
Views: 1010

Inverting a bool inconsistent using NOT (Flowcode 7)

If a boolean variable e.g. LtoR is inverted using NOT function e.g. LtoR = NOT(LtoR) then it works in a simulated decision but the generated code uses bitwise inversion (~) and the resulting value is not equivalent to false. CODE GENERATED: // Flip direction // Calculation: // LtoR = NOT (LtoR) FCV_...