malefic 48 Posted July 5, 2012 Report Share Posted July 5, 2012 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? Quote Link to post Share on other sites
Legend 181 Posted July 5, 2012 Report Share Posted July 5, 2012 its wonky... try: set(#DELAY, $divide(#NUMBER_PER_HOUR, 60), "Global") 1 Quote Link to post Share on other sites
malefic 48 Posted July 5, 2012 Author Report Share Posted July 5, 2012 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 Quote Link to post Share on other sites
malefic 48 Posted July 5, 2012 Author Report Share Posted July 5, 2012 As a follow up, why isn't divide and multiply available from the menu and only appear if you type it in code view or in code view? Quote Link to post Share on other sites
JohnB 255 Posted July 5, 2012 Report Share Posted July 5, 2012 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 Quote Link to post Share on other sites
malefic 48 Posted July 5, 2012 Author Report Share Posted July 5, 2012 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 Quote Link to post Share on other sites
blumi40 222 Posted July 5, 2012 Report Share Posted July 5, 2012 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)){}orif(#var=$true AND #var2=$false){} is this possible ? Quote Link to post Share on other sites
JohnB 255 Posted July 5, 2012 Report Share Posted July 5, 2012 Yes, just use If--->comparison and put your addition inside the comparison (the first parameter box) John Quote Link to post Share on other sites
blumi40 222 Posted July 5, 2012 Report Share Posted July 5, 2012 thx will try ! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.