Control flow in Ruby

Woah this is when my maths logic really needs to boot in. The if, else, elsif, unless can really start to get tricky when considering you combine a whole heap of operators… particularly the and ones!

&& aka same as

!! aka inclusive

! aka not

and operators can get a bit tricky with your logical grey matter 😉

About Sarah

Currently teaching in Collingwood College as a science and outdoor education high school teacher. After a huge 2020 I have decided to change direction and later in the year plan to undertake a coding bootcamp... After training to be a teacher via a Diploma of Education and Masters in Chemistry via thesis on the effects of bushfire on receiving water bodies (Gippsland 2002-2003) at Monash University Clayton Campus, Melbourne, Australia I have been teaching in Secondary schools in Melbourne including Sophia Mundi Steiner School . I have been an active member of the Australian Breastfeeding Association (ABA), represented Australia at the world Canoe Polo Championships, am keen on other sports: netball, basketball and road cycling. I am a keen gardener and owner of chickens as well as a German Shorthaired Pointer and mother to four children. Life is busy but I would not have it any other way!
This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

Comments are closed.