IF in the Julia programming language | Sololearn: Learn to code for FREE!


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/18/2020 11:06:27 AM


3 Answers

New Answer


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 ;)


Show this code 👇👇👇👇 https://code.sololearn.com/c6bZ5DYw8EOY/?ref=app


Julia uses keywords "and" , "or", and "not" plus many more