Quantcast
Channel: Ivanti User Community: Message List
Viewing all articles
Browse latest Browse all 12704

Re: For Loop not checking all items in a collection

$
0
0

Let me format it better, so you can see my spacing.

 

 

import System

static def GetAttributeValue(Request):

      Value = 'False'

      for Version in Request._EndUser.UserConfigItems:

           if Version.ConfigItem._CIMSVersion._CIMSVersion == 'CIMS 4.0':

                if Version.ConfigItem._CIMSVersion._CIMSVersion != null:

                     Value = 'True'

           return Value



I should also add that this is a calc that will be attached to a decision in a process. 'True' will correspond to 'Yes' and anything else, to 'No'


Viewing all articles
Browse latest Browse all 12704

Trending Articles