Hi,
I need to check whether 2 variables one by one whether it is empty or not and assign to another variable.
Example: Variable A = “123”
Variable B = “456”
For Variable C= IF A is not empty, assign A but if A is empty or Null , check B and if B is not empty B value else assign empty value to C
Yoichi
(Yoichi)
2
Hi,
How about the following?
C = if(String.IsNullOrEmpty(A),if(String.IsNullOrEmpty(B),"",B),A)

Regards,
1 Like
system
(system)
Closed
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.