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