Text Blocks

Text Blocks allow you to verify and manipulate text from a Text Input Scene.

Search For Text

The Search For Text Block will verify that a user’s response contains particular text.

Example 1:

  • Search (William)
  • Text Input = “William was at the party.” (Text is found)
  • Text Input = “Bill was at the party” (Text not found)

You can search for multiple phrases by separating each phrase with a comma.

Example 2:

  • Search (William, Bill)
  • Text Input = “William was at the party.” (Text is found)
  • Text Input = “Bill was at the party” (Text is found)
  • Text Input = “Janet was at the party” (Text not found)

Case Sensitive: Turning on the “Case Sensitive” toggle will check that a phrase will have appropriate capitalization.

Example 3:

  • Search (William)
  • Case Sensitive: ON
  • Text Input = “William was at the party.” (Text is found)
  • Text Input = “william was at the party.” (Text not found)

Exact Text: Turning on the “Exact Text” toggle will require a user to type the exact text, rather than a phrase.

Example 4:

  • Search (William)
  • Exact Text: ON
  • Text Input = “William” (Text is found)
  • Text Input = “William was at the party.” (Text NOT found)

Response is Email

The Response Is Email Block will check if the Text Input is formatted as an email address.

Example:

  • Text Input = “test@gmail.com” (Is email)
  • Text Input = “text@text.text” (Is email)
  • Text Input = “test@gmail” (Is not email)

Parse Alphanumeric

The Parse Alphanumeric Block will remove any non-alphanumeric characters from your text.

The Non-Alphanumeric Characters Are: ! @ # & ( ) – [ ] : ; ‘, ? / *` ~ $ ^ + = <> “

Example:

  • Text Input Before Block: (50%) becomes 50
  • Text Input After Block: 50

Lowercase Text

The Lowercase Text Block will change all the letters of a users text input to lowercase.

Example:

  • Text Input Before Block = “San Diego, California”
  • Text Input After Block = “san diego, california”

Uppercase Text

The Uppercase Text Block will change all the letters of a users text input to uppercase..

Example:

  • Text Input Before Block = “I can create Experiences in Metaverse”
  • Text Input After Block = “san diText Input After Block = “I CAN CREATE EXPERIENCES IN METAVERSE”

Parse Alpha

The Parse Alpha Block will remove everything that is not a letter from a user’s text input.

Example:

  • Text Input Before Block = “abc1+3d”
  • Text Input After Block = “abcd”

Save Text

The Save Text Block will save the text entered into the Text Input, similar to a Save Data Block

Check String Length

The Check String Length Block will check for the number of characters in a Text Input. You can also use the comparator to check for other values like “Greater than” or “Less than” a number of letters.

Response Is Number

The Response Is Number Block will check to see if the Text Input is a number.

Passes Regex Validation (advanced)

The Passes Regex Validation Block (advanced) will allow you to create your own regular expression to search the Text Input for.

Updated on February 24, 2021

Was this article helpful?

Related Articles