Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[HTCondor-users] Complex conditionals in Configuration
- Date: Mon, 06 Jun 2022 00:10:14 +0300 (MSK)
- From: "Stanislav V. Markevich" <stanislav.markevich@xxxxxxxxxxxxxx>
- Subject: [HTCondor-users] Complex conditionals in Configuration
Hello all,
I'm trying to check value of some macro in a condition and cannot understand how should I do it.
If the macro evaluates to a simple boolean value (true, false, 0, 1, etc) there is no problem. But what if I want to compare with other values?
For example, I want to check if $(MY_OPTION) evaluates to the value "one". I cannot just write
if $(MY_OPTION) == "one"
...
because of complex conditionals are not supported. So I have somehow evaluate this expression and put the result into some other macro, but how can I do it?
I tried
MY_CONDITION = $EVAL( $(MY_OPTION) == "one")
if $(MY_CONDITION)
...
and some other options but still get the same error "$(MY_CONDITION) is not a valid if condition because complex conditionals are not supported".
Any help would be greatly appreciated.
Best regards,
Stanislav V. Markevich