- This topic has 10 replies, 8 voices, and was last updated 11 years, 11 months ago by .
-
Topic
-
I’ve been meaning to ask this for some time now… in an xlate, is there a way to avoid having to mention the field over and over again when using the “&&” or “||” operators? For instance, I am used to having to do the following:
If ~1(0).PRA(0).#3(0).[0] eq=9 || ~1(0).PRA(0).#3(0).[0] eq=D || ~1(0).PRA(0).#3(0).[0] eq=G || ~1(0).PRA(0).#3(0).[0] eq=H || ~1(0).PRA(0).#3(0).[0] eq=J || ~1(0).PRA(0).#3(0).[0] eq=K || ~1(0).PRA(0).#3(0).[0] eq=M || ~1(0).PRA(0).#3(0).[0] eq=N || ~1(0).PRA(0).#3(0).[0] eq=O || ~1(0).PRA(0).#3(0).[0] eq=P
then do….
Is there a way to cut down on the typing here?
I’m used to things like Crystal where you can say if value is IN {9, D, G, H, J, K, M, N, O, P} then do…..
thanks for any advice…..
tom
Viewing 9 reply threads
Viewing 9 reply threads
- The forum ‘Cloverleaf’ is closed to new topics and replies.