Ruby is an open source server-side scripting language for object-oriented programming. It was designed and developed by Yukihiro Matsumoto in Japan in the mid-1990s. In the Ruby community, Matsumoto is also known as Matz. Ruby runs on multiple platforms such as Windows, MAC OS, and various versions of UNIX.
Ruby judgment syntax
Ruby provides several very common conditional constructs. Here, we will explain all the conditional statements and modifiers available in Ruby.
Ruby judgment example
if conditional [then] code...[elsif conditional [then] code...]...[else code...]end