Skip to main content
September 26, 2022
Question

Is there a way to check case sensitivity on the value I pass in?

  • September 26, 2022
  • 2 replies
  • 0 views

Hello,

Is there a way to check case sensitivity on the value I pass in?

Also, is there any other way to check the data type of the value?
For example,

 1) Want to check if the value corresponding to the date type is actually using the date type correctly?
 2) Want to check whether the value corresponding to the string type uses only uppercase letters, only lowercase letters, and whether special symbols are combined.

Thank you.

    2 replies

    stefanhelzle0001
    Brainy
    September 26, 2022

    Yes. As this seems to be a bit more complex, I suggest going with the regex plugin.

    harshitb6843
    September 26, 2022

    Yes. That is possible. You can use the regex as Stefan said but you can also build logic with the native SAIL code itself. 

    For eg. To check for the upper case characters, you can use the code function. For checking the date, you can split it on the required character (/,.,-) and then check the value of individual indexes in that array.