jeudi 19 mars 2015

New To Ruby, Using IF and Else

Hey guys could you help me in this code?



p account.balance if num_account == account.num_account && agencia == account.agencia


This line of code, prints your account balance, if the condicions are correct, i want to make a "else" in case, this conditions are not correct, without repeting everything


Aucun commentaire:

Enregistrer un commentaire