GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

change attribute to table search with the key "Not"

CMR InteractiveCMR Interactive Posts: 13Member, BASIC

hi, i've been learning the table search function and have been using it for a while now. my problem is i cant seem to get a certain key working. the key i am trying to use is "Not" i have used "Exact and "Contains" but cant seem to get "Not" working, i even used the same statement and just replaced "Exact" with "Not" but value is always Zero. ive tried searching these forums and youtube but cant find anyone who has covered that specific key. any help appreciated

Comments

  • tatiangtatiang Posts: 11,815Member, Sous Chef, PRO, Senior Sous-Chef
    edited January 17

    I didn't even realize that was an option. I just tried several variations including these and none of them worked:

    tableSearch( ...,"not")
    tableSearch( ...,(not))
    tableSearch( ...,not)
    tableSearch( ...,(not)"exact")

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • tatiangtatiang Posts: 11,815Member, Sous Chef, PRO, Senior Sous-Chef
    edited January 17

    Aha! Turns out it's "notexact"

    tableSearch( game.|T| Data , self.searchKey ,"col",1,1,tableRowCount( game.|T| Data ),"notexact")

    How the heck we're supposed to know that...

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • CMR InteractiveCMR Interactive Posts: 13Member, BASIC

    that actually worked, thank you very much

Sign In or Register to comment.