Active IQ Unified Manager Discussions

WFA: Skip a command if a variable is null?

waynesilvia
3,000 Views

In the advanced tab on a command is there a way to skip the command if a Variable is Null/blank/empty?

 

There really is not that many examples of how to use these and the expression syntax....

 

if the following variable was found

 

if the following variable was found Not found

 

if the following expressing is true

 

 

 

 

1 ACCEPTED SOLUTION

trentino123
2,978 Views

Then you can try ..

 

In the advanced tab of the command you can choose Execute this command if the following expression is true :

 

$your_null_variable_to_check != null

View solution in original post

3 REPLIES 3

trentino123
2,995 Views

In the advanced tab of the command you can choose Execute this command if the following expression is true :

 

$your_null_variable_to_check == ""

waynesilvia
2,981 Views

Actually, I want the oppposit to be "true".

 

if the variable is NOT null I want the command to run, if its null i DON'T want it to run.

 

I ran the workflow with what you you gave me (with the variable empty) and displayed the variable in the "green box" during the run and it displayed "NA".  so it will run...

 

if I place a value on the variable it does not run.

 

so the question still remains....can a skip a command if a variable is null? 

 

 

trentino123
2,979 Views

Then you can try ..

 

In the advanced tab of the command you can choose Execute this command if the following expression is true :

 

$your_null_variable_to_check != null

Public