desert CA
Experience: Intermediate
Platform: NT7, various
Broker: various, TDA
Trading: NQ,ES
Posts: 2,124 since Jul 2011
Thanks Given: 2,396
Thanks Received: 1,748
|
Hi, there's no branching if-then-else statement by itself. It's usually a contained expression in other statements. Here's what should work.
def i = ( condition );
def b = if (i == 0) then 1 else i;
|