0 votes
in Ruby by
Explain Ruby if-else statement.

1 Answer

0 votes
by

The Ruby if-else statement is used to test condition. There are various types of statement in Ruby.

if statement

if-else statement

if-else-if (elsif) statement

ternary statement

Related questions

0 votes
asked Nov 11, 2021 in Ruby by SakshiSharma
0 votes
asked Nov 11, 2021 in Ruby by SakshiSharma
...