Eval
From UBot Studio
(Difference between revisions)
(Created page with "This function returns the results of executing a piece of javascript or simple mathematical equations. $Eval is a Math Function. == Example == <pre> navi...") |
|||
Line 25: | Line 25: | ||
Going back to our original script: | Going back to our original script: | ||
− | + | Running the script will fill the field with the correct answer for the 4+4 equation. | |
+ | |||
+ | [[File:eval.png]] |
Revision as of 22:16, 23 October 2012
This function returns the results of executing a piece of javascript or simple mathematical equations. $Eval is a Math Function.
Example
navigate("http://www.ubotstudio.com/playground/simple-form", "Wait") type text(<about me textarea>, $eval($add(4, 4)), "Standard")
Typing 4+4 into the eval function brings up a new function called the add function.
$eval($add(4, 4))
The subtract function appears when 4-5 is typed into the eval function.
$eval($subtract(4, 4))
Going back to our original script:
Running the script will fill the field with the correct answer for the 4+4 equation.