Wanting "If" to check for empty variable

I have a variable called %SvnPathBranch% which can either be empty or have a value in it.

I have another variable call %SvnPath% which is set by default to "http:\\mypathtrunk"

if (%SvnPathBranch% is not empty)

{

        %SvnPath% = %SvnPathBranch%

}

How can I do this?

 

Hi Peter,

Use the If…Then action with the left hand value as %SvnPathBranch% and leave the right value blank, then use a Set Variable action as a child action.

Regards,
Paul.

thanks.