“If You Like A Flower, You Pluck It. If You Love A Flower, You Water It Every Day.” - Budhha 🪷

Alex Johnson
-
“If You Like A Flower, You Pluck It. If You Love A Flower, You Water It Every Day.” - Budhha 🪷>

If else and else if how do you use these? And when do you use them and when not? &, &&, |, ||, ^ & and && are "and" operators, | and || "or" operators, ^ is "xor" the single ones will check every parameter, regardless of the values, before.

Since [ is a command (you could also use 'test'), it requires a space before writing the condition to test. The zmbq solution is good, but cannot be used in all situations, such as inside a block of code like a for do (.) loop.

You may also like