Forums › ProRealTime English forum › ProBuilder support › The command 'once' is not doing what is expected › Reply To: The command 'once' is not doing what is expected
05/23/2018 at 2:13 PM
#71182
ONCE is read by the system ONCE at launch time, so your code could be written as
1 2 3 4 5 |
M1 = barindex if barindex >2 then //once M2 = M1 endif return M2 |
When BarIndex is ZERO the IF…ENDIF block will be skipped, later, when executed, line 3 will be skipped because of the ONCE keyword.