"not equal to" for text ?

bladeolsonbladeolson Member Posts: 295
edited November -1 in Working with GS (Mac)
Is there no way to do a "not equal" to with text? I can only see...

is
contains
beginswith
endswith

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi bladeolson: you're correct, for text there is no "is not". I'm a bit puzzled to know why, or rather in what circumstances you need this; would you mind explaining please?

    ---------------------------------------------------------------
    Spiral Gyro Games

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • bladeolsonbladeolson Member Posts: 295
    I have a rule for using a spawned object that has a text attribute assigned to it. If that object is dragged over interaction actors it will allow an interaction. I want to all the interaction to happen only if the correct text is associated with the object if it is any other text, the interaction won
    t happen.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    You could p'raps try the following: for each text attribute you have, make a new integer attribute, with values ranging from 1 to the number of text items. Then when the user chooses the text and drags it over the object, the rules for that particular object would include that the interaction (or the result from the interaction) won't happen unless the text has a value of whatever number you've linked as being correct for the image.

    Hope that makes sense; it's 1.30am here in the UK, so if it doesn't, that's my excuse!

    :-)

    ---------------------------------------------------------------
    Spiral Gyro Games

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • firemaplegamesfiremaplegames Member Posts: 3,211
    Are you able to use the 'otherwise' section of the Rule?

    Rule
    when all conditions are valid:
    self.myText is [whatever]
    -----[do something]
    otherwise
    -----[do something else]
  • bladeolsonbladeolson Member Posts: 295
    I used the otherwise rule and that totally worked.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Oh, good.

    ---------------------------------------------------------------
    Spiral Gyro Games

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • jstrahanjstrahan Member Posts: 498
    I knew there was more than a gyroscope turning up there
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    ;-)

    :-)

    ---------------------------------------------------------------
    Spiral Gyro Games

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.