Forum Discussion

Leahy's avatar
Leahy
Contributor
5 years ago
Solved

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 = Project...
  • Wamboo's avatar
    5 years ago

    Hi,

     

    Adding to the thread. If you want to check the JS variables, use this code:

     

    if (typeof yourVar === 'undefined') {
     
    }