Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Convert javascript datatype value

$
0
0

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


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>