This is somewhat misleading. When you choose the “wait for variable” function, it is waiting for that variable to become TRUE or FALSE. It is not saying “wait for X amount of time” where X is your variable. In other words, it is not evaluating the variable and inserting its value as a delay time.
If you want to use a variable to control how long the robot waits for, use the “sleep()” script command and put your variable inside.
This command will evaluate the variable’s contents and sleep (wait) for the variable’s value in seconds. So sleep(2) is sleeping for 2 seconds.