Leahy
6 years agoContributor
Test if variables are passed to function
I am writing a function but need to ensure all the proper variables have been passed with the call to the function...
From the function.....
// Obtains a variable collection
Variables = ProjectSuite.Variables;
Variables1 = Project.Variables;
if (!(Variables.VariableExists(Emp_Num) || Variables.VariableExists(Start_Date) || Variables.VariableExists(End_Date)))
{
I have included a copy of the watch list....the varialbes do exist....
What am i doing wrong with the "Variable.Exists" ?????
Hi,
Adding to the thread. If you want to check the JS variables, use this code:
if (typeof yourVar === 'undefined') { }