Jump to content
UBot Underground

[Solved]Eval problem?


Recommended Posts

Okay - tried a few different things......anyone know why the #DELAY value is staying blank in debugger?

 

if($comparison(#NUMACTION, "=", $nothing)) {
       then {
           set(#NUMBER_PER_HOUR, 150, "Global")
       }
       else {
           set(#NUMBER_PER_HOUR, #NUMACTION, "Global")
       }
   }
   set(#DELAY, $eval($divide(#NUMBER_PER_HOUR, 60)), "Global")

 

NUMACTION and NUMBER_PER_HOUR are being set, DELAY isn't being calculated......

 

Anyone have any ideas why?

Link to post
Share on other sites

Cheers Duane - sorted. Thought it was only me that said things are 'wonky' !

Sure I have used $eval before on it though.

 

I put it down to the rare glimpse of sun we have in the UK at the moment, laying with my head :)

Link to post
Share on other sites

They are not menu commands, they appear when you use the math operators. So you only need to use "x - y" to get a subtract, etc...it's faster and easier.

 

John

Link to post
Share on other sites

Not sure why I threw in the extra $eval in there to start with then....old age or too much banging my head against the wall when websites put limits in that means a bit of a rewrite :D

Link to post
Share on other sites

They are not menu commands, they appear when you use the math operators. So you only need to use "x - y" to get a subtract, etc...it's faster and easier.

 

John

 

by the way JohnB

 

can i do things like that?

if

(

#var=10 OR (#var2+#var3=10)){}

or

if(#var=$true AND #var2=$false){}

 

 

is this possible ?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...