If-Function exits the block due to Condition fail | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

If-Function exits the block due to Condition fail

Hi. Currently on if-statements course for ruby and it stated that it'll exit the block if a condition fails? What does it mean? Like, does it stop the entire function (multiple functions//checks in 1 if-statement, Inner side and not outer) if it's not recognised as true? I mean, if a code results from a false, does it exit the entire block? or it is some other "fail" condition that I am not aware of?

27th Jul 2017, 2:39 PM
Alex
Alex - avatar
1 ответ
0
it means to say that... if(condition){ statement 1 statement 2 statement 3 } now if the above condition fails then this { ....} whole block will exit..
27th Jul 2017, 2:59 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar