Stage Flow Control Bug

I'm trying to add a flow control "if statement" to stop the build if the user failed to enter a value.  

I started experimenting with other values, and noticed that not entering a value causes a problem:

The following works as expected for "abc" (stops) and "def" (continues), however it DOES continue if I never enter a value in the popup

If ['%website name%' Equals 'abc']

STOP (Fail)

I’ve tried several of the other flow control conditions and still can’t get this to work.

The problem is certainly most likely caused by the value being blank, though one would expect this to work for the “Exists” and “Does Not Exist” operators.

Hi Mike,

The 'exists' and 'does not exist' operators are there to test whether a variable has been defined. This would generally be used for checking for the existence of server variables.

The following If statement would be used to test if no value has been provided. 

If ['%websitename%' Equals '']

 STOP (Fail)


However, this was incorrectly showing an error "The right side of the expression was not specified". You should see this in your build log.

Thanks for reporting this bug. We have now fixed it and we should have a new build out later today.

Note that an alternative option would be to set a default value for the variable e.g. "none" and then check for this value in the If statement.

update works great!

Ah, I spoke to soon. The following DOES work

If [’%websitename%’ Equals ‘’]
STOP (Fail)

However the Exists/Does not exist operator never works, regardless if there is a value in the variable or not

Hi Mike,

The 'exists' and 'does not exist' operators are there to test whether a variable has been defined not whether they have a value.