Comparison of value fails, because datatype value returned by invoke powershell script is a function. Is there a way to get them converted to string value
currentAutoAdminLogin = System.getModule("com.vmware.library.powershell").invokeScript(psHost,script1,sessionId);
returns value 0 in orchestrator output window
var stdAutoAdminLogin = "0"
System.log(currentAutoAdminLogin)
[2015-12-24 12:58:23.837] [I] DynamicWrapper (Instance) : [PowerShellRemotePSObject]-[class com.vmware.o11n.plugin.powershell.model.RemotePSObject] -- VALUE : com.vmware.o11n.plugin.powershell.model.RemotePSObject@2c47da58
System.log( typeof(currentAutoAdminLogin)
[2015-12-24 12:58:23.837] [I] function
System.log(currentAutoAdminLogin == 0)
[2015-12-24 13:10:36.135] [I] false