Forum rules - please read before posting.

Check if String Variable contains "X"?

edited October 29 in Technical Q&A

I see there's a way to check if a string variable is equal to or not equal to. But is there a way to check if a string variable contains a string. For example Variable: Check if Global Variable "TODAY" contains "DAY".

I'm trying to create a puzzle that asks for Input, then compares the input with the correct answer. IE, Q:"When is a door not a door?" A: "When it's ajar." But I'd like to check if the users input contains "JAR" regardless of how they worded the answer.

Comments

  • Good timing - the upcoming v1.85.1 update will add a "Contains" option to the Variable: Check Action when comparing String variables.

  • Awesome! Thanks, Chris.

Sign In or Register to comment.

Howdy, Stranger!

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

Welcome to the official forum for Adventure Creator.