Hi, i need help to reconstruct this if-else logic. I'm not getting the correct result. Appreciate your advice.
Thanks in advance.
My objective:
1. I want to check if QUA_AST_DNS column contains 'sglife' keyword and then check on QUA_AST_IP column if Startswith "10.181." or "10.183." If true, output as PSAS.
2. The 2nd IF statement is to check on DNS column contains 'sglife' keyword and then check on IP_address column if Startswith "10.181." or "10.183." If true, output as PSAS.
3. If both conditions above don't meet, then take LBU as output.
IF Contains([QUA_AST_DNS],'sglife') &&
(Startswith([QUA_AST_IP],"10.181.") OR
Startswith([QUA_AST_IP],"10.183.")) then 'PSAS'
ELSEIF Contains([dns],'sglife') &&
(Startswith([IP_address],"10.181.") OR
Startswith([IP_address],"10.183.")) then 'PSAS'
ELSE [LBU]
ENDIF