Jump to content
Aveyond Studios Community
Ant

If (String)

Recommended Posts

KkjDmjZ.png

Description

Compare two strings. If the comparison is true, perform the actions inside this If statement.

Fields

String A - Choose the first string to compare (string field B).

Operator - Choose how to compare the strings.

  • = (strings must have the same values for comparison to be true)
  • != (strings must have different values for comparison to be true)

String B - Choose the second string to compare (string field A).

Share this post


Link to post
Share on other sites

@Ant,

How about adding 2 further Operators here (hell, and for numerous other comparisons/conditions) | and |!  ie.

| = contains

|! = does not contain

In the case of strings, I am thinking it would be ENORMOUSLY helpful to check big strings for words, keywords etc.  Although, perhaps a function to allow here with strings for the comparison to be case sensitive or not?

In the case of other variables, imagine if you implement Enums and Mask Enums - suddenly you then get an exponential increase in functionality here too!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×