Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] Number of members in a list value in submit description?
- Date: Tue, 16 Jan 2018 22:43:29 +0000
- From: John M Knoeller <johnkn@xxxxxxxxxxx>
- Subject: Re: [HTCondor-users] Number of members in a list value in submit description?
There is no $LENGTH(), but you can simulate it for most lists with a classad function combined with $INT()
LIST = 1, 2, 3, 4, 5
LISTSZ = stringListSize("$(LIST)")
TRUE_VAL = $INT(LISTSZ) == 5
-----Original Message-----
From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx] On Behalf Of Michael Pelletier
Sent: Tuesday, January 16, 2018 1:58 PM
To: HTCondor-Users Mail List (htcondor-users@xxxxxxxxxxx) <htcondor-users@xxxxxxxxxxx>
Subject: [HTCondor-users] Number of members in a list value in submit description?
Is there a good way to find the number of values in a list in the submit description? I.e.:
LIST = 1, 2, 3, 4, 5
NLIST = $LENGTH(LIST)
TRUE_VAL = $(NLIST) == 5
Thanks for any suggestions!
-Michael Pelletier.
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/