1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

[Kontakt 6] Does search() work with arrays of string type?

Discussion in 'Scripting Workshop' started by Nozama, Nov 17, 2020.

  1. Nozama

    Nozama New Member

    Messages:
    2
    I tried this script below

    $Index := search( !String_Arr, "Hello." )

    And I was said "expression expected."
    What is the problem? How can I solve this?

    Thanks.
     
  2. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    You cannot search or compare strings in KSP. Well, there's a workaround for identical string comparison using find_group(), but it is nasty, very nasty.
     
    • Like Like x 1
  3. Nozama

    Nozama New Member

    Messages:
    2
    Thank you EvilDragon!