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'