5

I have tried the following

gotoIf "${oneoff}"=="Jeff Della Rosa" 
gotoIf ${oneoff}=="Jeff Della Rosa" 
gotoIf ${oneoff}=={"Jeff Della Rosa"} <-- not sure why, just trying anything.

-------- HERE IS THE WHOLE sequence----------

Zhaph - Ben Duguid
  • 26,785
  • 5
  • 80
  • 117
michael Reid
  • 209
  • 1
  • 3
  • 15

2 Answers2

5

Additionally, for testing for "NOT EQUAL" use this syntax:

gotoIf '${variable}'!='the string operand' target_label

Having single quotes around both the variable and the operand IS important.

Jay J
  • 430
  • 3
  • 19
4

The correct format is.

gotoIf '${oneoff}'=='Jeff Della Rosa'

Single quotes... Grr!

michael Reid
  • 209
  • 1
  • 3
  • 15