Graphics

 View Only
  • 1.  Case sensitive string compare

    Posted 12-07-2023 18:24

    I've managed 95% of my task but stuck on the last bit. I am comparing the right 3 characters of a text string in visual logic and when they equal "W W" I am triggering a scene director. It works to date but this needs to be case sensitive which is where I'm stuck because there is a possible condition where the right 3 characters of the string could read "W w" which also triggers the scene director. I need to condition to be case sensitive so "W W" triggers the scene director and "W w" or "w W" will not. It might have to be a script not visual logic but I'm a still trying to learn the scripting side of things. Thanks for any help. 



    ------------------------------
    Andrew Harcourt
    ------------------------------


  • 2.  RE: Case sensitive string compare

    Posted 12-08-2023 10:15

    "String Compare" has a case sensitive checkbox. That should take care of your problem.

    There is also another method using string position that can work

    https://rossvideo.community/discussion/simplified-chosen-item



    ------------------------------
    Azathoth
    Son of Cthulhu
    ------------------------------