Operator in variable

Find quick help here to get you started with Hollywood
Post Reply
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

Operator in variable

Post by sinisrus »

I find to solution for change operator in variable

Code: Select all

A=5
B=5
BOB=1

IF (bob) OP=+ ELSE OP=- ENDIF  

DebugPrint(A..OP..B) => no work
Is there a way to do this?
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

Re: Operator in variable

Post by sinisrus »

Ok solved

Eval() is good for this job :-)
Post Reply