jvm2016
Hot Shot
Hot Shot

version checking using vRO

Jump to solution

1:creation of attribute

pastedImage_1.png

2:creation of input parameter>

pastedImage_2.png

3:

dragging custom decsion and writing following code .

pastedImage_3.png

can i compare this in above way   .is the version attribute created in step first of correct type??

0 Kudos
1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee

Yes, the version attribute is of type string. And yes, comparison is done with ==

The code in the decision could be written also as:

return esxiHost.version == version;

View solution in original post

0 Kudos
3 Replies
jvm2016
Hot Shot
Hot Shot

i think i got need to put one extra = in comparion.

0 Kudos
iiliev
VMware Employee
VMware Employee

Yes, the version attribute is of type string. And yes, comparison is done with ==

The code in the decision could be written also as:

return esxiHost.version == version;

0 Kudos
jvm2016
Hot Shot
Hot Shot

Thanks.

0 Kudos