Is it possible to have an if statement select any responses of a variable that weren’t specified? [closed]

  Kiến thức lập trình

I have a chain of if/else statements, and if I don’t input anything that I didn’t specify a reaction for in the chain, it automatically resorts to the last if statement in the chain.

I couldn’t find anything online so I simply tried

if (x === else)
println ("Error. Please try again")

But it didn’t work.

New contributor

JustATonk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

6

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT