Checking the Value of Variables - Checking the Value of Variables - Hyland RPA - Designer - Hyland-RPA/Designer/Foundation-24.2/Hyland-RPA-Designer/Visual-Basic-Text-Expressions/Checking-the-Value-of-Variables - Foundation 24.2 - Foundation 24.2

Hyland RPA Designer

Platform
Hyland RPA
Product
Designer
Release
Foundation 24.2
License
ft:lastPublication
2025-04-03T07:37:45.382000
ft:locale
en-US

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)