AnsweredAssumed Answered

I'm having trouble finding the highest value in a variable

Question asked by TonyTrevisonno on Mar 9, 2016
Latest reply on Mar 9, 2016 by BruceRobertson

Hey folks,

I have a variable that contains the following values in the following order:

 

004316620.prt.10

004316620.prt.11

004316620.prt.7

004316620.prt.8

004316620.prt.9

 

The numbers at the end of these filenames after the .prt. represent the file versions. I pull them from the associated folder.

When the versions go from 9 to 10 or from 99 to 100 I have a problem finding the highest version because the files are not listed in sequence.

So, from this list of values, I need a script that spits out 11 as the highest file version.


Anybody have any ideas?

Many thanks,

TT

Outcomes