Home      Ask a Question      My Stuff      Help   
  
TimeWorks: Scripting - ELSE Statement
The scripting language includes the use of "else" statements. Meaning if it meets a requirement then do something and if it does not do something "ELSE".

An example of the syntax that uses the else statement is listed below:

if (Department = "400")
{
     roundtoschedule (14,0,0,0);
}
else
{
     roundtoschedule (20,0,0,0);
}

In this example, if the Department is equal to 400, then it will round to schedule (assuming the appropriate information has been input into Employee Setup), "ELSE" if the department is anything other than 400 then round to a different value.


Scripting (Main Page) > Scripting - Keywords (Main Page) > TimeWorks: Scripting - ELSE Statement

ID
91
Category
Training
  FAQ's
Date Created
1/5/2007 12:43:51 PM
Date Updated
8/13/2014 3:04:23 PM
Back to Search Results