Skip to main content
Question

how to check empty with a string

  • February 15, 2023
  • 2 replies
  • 1706 views

Forum|alt.badge.img+3

how to compare empty with a string 
 

 

2 replies

Forum|alt.badge.img+6
  • Navigator | Tier 3
  • February 16, 2023

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.


rbkadiyam
Premier Pathfinder | Tier 7
Forum|alt.badge.img+17
  • Premier Pathfinder | Tier 7
  • February 16, 2023

@lathab