Home      Ask a Question      My Stuff      Help   
  
Scripting - Requring more than one piece of information before the script is applied.
Question
ID
403
Category
Training
  FAQ's
Date Created
5/28/2009 9:44:48 AM
Date Updated
10/6/2011 10:55:02 AM
I would like to use an "IF" statement that will require two pieces of information to be collected before the script is applied. Can this be done?
Answer
Yes, this can be done. Here is an example of this type of script.

If(location="Home")
{
If(x="1")
{
x="Home 1";
}
If(x="2")
{
X="Home 2";
}
}

This requires that "Home" is present in the location field and the information is collected using the "x" clock prompt.

If in the employee setup they have "Home" in the location field and at the "x" prompt they enter the number 1, then "X" will translate to "Home 1" on the timecard. If they enter the number 2 at the "x" prompt the "x" will translate to "Home 2".
Back to Search Results