Home      Ask a Question      My Stuff      Help   
  
Scripting - A Range of Numbers to a Clock Prompt
Question
ID
361
Category
Training
  FAQ's
Date Created
2/11/2009 7:47:01 AM
Date Updated
10/11/2011 1:58:45 PM
Is there a way to create a clock prompt and assign a range of numbers to script off of like if the x prompt is from 1000-2000 then change the category to "Warehouse"?
Answer
Yes there is a way to do this by using greater than (>), less than (<) and equal signs (=) in a script we can script to a range of numbers entered at the clock prompts and based on that assign a category. Below is an example based on the above question:

if (y >= 1000 and y <= 2000){category = "Warehouse"}

So in the example if at the y prompt some one enters a number equal to or greater than 1000 and equal to or lesser than 2000 it will change the category to "Warehouse".

You can also use it to reassign the y prompt as in the below example:

if (y >= 1000 and y <= 2000){y = "Warehouse"}

In the example if at the y prompt some one enters a number equal to or greater than 1000 and equal to or lesser than 2000 it will overwrite the original y prompt entry to "Warehouse".
Back to Search Results