VMware Cloud Community
jvm2016
Hot Shot
Hot Shot
Jump to solution

version checking using vRO

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??

Reply
0 Kudos
1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee
Jump to solution

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

Reply
0 Kudos
3 Replies
jvm2016
Hot Shot
Hot Shot
Jump to solution

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

Reply
0 Kudos
iiliev
VMware Employee
VMware Employee
Jump to solution

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;

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

Thanks.

Reply
0 Kudos