Question

how to check empty with a string

  • 15 February 2023
  • 2 replies
  • 901 views

Badge +3

how to compare empty with a string 
 

 


2 replies

Userlevel 3
Badge +6

Create a string variable and don’t assign any default value, also make it constant. Eg: EMPTY_STRING
You can compare this variable for equality: if $ReceiptReceivedString$ = $EMPTY_STRING$

You can also trim the input value then compare for empty.

Userlevel 5
Badge +14

@lathab 

 

Reply