Dynamically creating a message in Verse?

The decides is equivalate to checking for null or index out of range in C#. And it returns the value into ArrayMessage if it passes those checks. So in C# to do the same you would have something like this:

if (currentTextIndex >= 0 && currentTextIndex < textMessages.Length && textMessages[currentTextIndex] != null)
{
    string ArrayMessage = textMessages[currentTextIndex]
}
2 Likes