Operator in variable

Find quick help here to get you started with Hollywood

Operator in variable

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

Re: Operator in variable

Postby sinisrus » Wed Mar 22, 2017 12:41 pm

Ok solved

Eval() is good for this job :-)
sinisrus
 
Posts: 185
Joined: Tue Apr 21, 2015 5:43 pm


Return to Newbie questions

Who is online

Users browsing this forum: No registered users and 1 guest