Operator in variable

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

Operator in variable

Post by sinisrus » Wed Mar 22, 2017 11:33 am

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: 214
Joined: Tue Apr 21, 2015 5:43 pm

Re: Operator in variable

Post by sinisrus » Wed Mar 22, 2017 12:41 pm

Ok solved

Eval() is good for this job :-)

Post Reply