So I am building a workflow to build one or more volume using a repeat loop. This works fine however, I would like to be able to provide a single volume size or multiple volume sizes comma separated.
Can someone help me with a java if statement I can use to accomplish this?
my volume name is extracted from the share name field
splitByDelimiter($ShareName,",",ShareIndex1-1)
this works but expects a one to one
actualVolumeSize(splitByDelimiter($VolumeSize,",",ShareIndex1-1) * 1024, volume4.snapshot_reserved_percent)
what I want is a if clause
(getSize($Volumesize) == 1?$Volumesize:splitByDelimiter($VolumeSize,",",ShareIndex1-1)
this is not working.
Ideally I would like to account for a incorrect number of values as well.
Thanks In advance
John