How to do and in if condition #2913
|
Hello, I have following code: However, I would like to simplify it to: But, can not do it, due to following error: just version: |
Answered by
ShreeChaturvedi
Aug 19, 2026
Replies: 2 comments
|
There isn't currently a way to do For your specific case you could do: since https://just.systems/man/en/functions.html#system-information |
0 replies
|
Your set unstable
set lists
umk_exe := if os_family() == "unix" && os() != "macos" { "umk.out" } else { "umk" }On 1.43.0 that parse fails because umk_exe := if os_family() == "unix" {
if os() != "macos" { "umk.out" } else { "umk" }
} else {
"umk"
}
|
0 replies
Answer selected by
casey
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your
&&line works from just 1.53.0 if you turn on unstable lists:On 1.43.0 that parse fails because
&&is not booleanandinif. Stay on nestedifs, which are stable and still the right approach if you do not wantset lists:set listsis unstable, so this&&form can still change.