scale.wait

description

Waits until one of the buttons is clicked before evaluating and executing the next commands.

syntax

getScale(ELEMENT_NAME).wait()

alternate(s)

  • getScale(ELEMENT_NAME).wait("first")

  • getScale(ELEMENT_NAME).wait(test)

notes

  • If you call wait("first"), then if a button is already selected when this command is evaluated, the next commands are evaluated and executed right away. If no button in the scale was clicked before, the next commands are only evaluated and executed after a button is clicked.

  • If you pass a test on an element as an argument, it only evaluates and executes the next commands when a button is clicked while the test is successful. If the test is not successful, it will be checked again upon the next click.

  • Adds a 5-point radio scale to the screen and waits for a click on one of its buttons.


example(s)


@newScale("hunger", 5)
@    .before( newText("left", "Right now, I am... very hungry ") )
@    .after( newText("right", " not hungry at all") )
@    .print()
$    .wait()
  • Adds a 5-point radio scale to the screen and waits for a click on one of its buttons.