Need Help to understand the Code

Hello fellow developers,

Can you help me understand this code.

If(CBool(in_Config(“SomeInput1”).Tostring),in_Config(“Input2”).Tostring,in_config(in_config(“Input3”).Tostring+“_”+in_config(“input4”).tostring+“_AppName”).Tostring)

I am using an assign activity and sending this to another string variable.

My understandng was when i use IF it has to return me either true or false but this one i couldn’t get .

Please help

The state is in this format:
If(<condition> , <Value when condition is True> , <Value when condition is False>)

In you case IF evaluates the condition CBool(in_Config("SomeImput1").ToString).
if True, returns value for in_Config(“Input2”).Tostring
if False, returns value for in_config(in_config(“Input3”).Tostring+“_”+in_config(“input4”).tostring+“_AppName”).ToString

1 Like

wow thanks buddy, fantastic

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.