+ 1
IF in the Julia programming language
hi guys can someone help me. I recently started to learn the Julia programming language and I couldn't find how to do multiple conditions in a single IF. Does anyone know how ?. In python "and" or "or" are used
3 Respostas
+ 7
It does support conditionals. Try '&&' for 'and', '||' for 'or'.
#code sample
x=1; y=2
if x<y && 3>y && 1<y
println("X is less than y ")
end
ref: https://docs.julialang.org/en/v1/manual/control-flow/
One tip. Try using the docs once a while. It helps.
Mûhãmmëd💡🚁🏇🏆 He is asking about julia not python ;)
0
Show this code 👇👇👇👇
https://code.sololearn.com/c6bZ5DYw8EOY/?ref=app
0
Julia uses keywords "and" , "or", and "not" plus many more