if condition is not working in script inlcude

Anusha Anus
Tera Expert

Hello,

 

I am calling script include from Reference qualifier,

 

My requirement is if logged in user is manager, then only his name has to be showed in the Requested for variable,

if logged in user is Not manager, then his name and his reportees should be displayed in the Requested for variable,

 

Even though the condition matches at line no 27, log message of 28th line is not getting executed.

 

Could you please anyone help on it.

 

AnushaAnus_0-1706609017986.pngAnushaAnus_1-1706609046826.png

 

 

Thanks,

Anus.

 

1 REPLY 1

Abbas_5
Tera Sage
Tera Sage

Hello @Anusha Anus,

Please refer to the link below:
https://www.servicenow.com/community/developer-forum/if-condition-not-working-in-script-include/m-p/...

 

Mark my correct and helpful, if it is helpful and please hit the thumbs-up button to mark it as the correct solution.
Thanks & Regards,
Abbas Shaik