Checking the Value of Variables - Designer - Foundation 24.1 - Foundation 24.1 - Ready - Hyland RPA - external - Hyland-RPA/Designer/Foundation-24.1/Hyland-RPA-Designer/Visual-Basic-Text-Expressions/Checking-the-Value-of-Variables - 2025-04-03

Hyland RPA Designer

Platform
Hyland RPA
Product
Designer
Release
Foundation 24.1
License

This topic provides code samples for checking the contents of variables.

  • Checks if the string matches the given input and returns False

    myString = "Thank God It's Monday"
    myBoolean = myString.Equals("Monday")
  • Checks if the string contains the given input and returns True

    myBoolean = myString.Contains("Monday") 
  • Checks if the string starts with the given input and returns False

    myBoolean = myString.StartsWith("Monday") 
  • Checks if the string ends with the given input and returns True

    myBoolean = myString.EndsWith("Monday")
  • Returns -1 if time1 is earlier than time2, returns 0 if time1 is equal to time2, and returns 1 if time1 is later than time2.

    myInteger = DateTime.Compare(time1, time2)