1. Home
  2. Computing & Technology
  3. Ruby

Statement

By , About.com Guide

Definition:

Statement: A piece of code that can stand by itself, without having to follow or be enclosed within any other code. It specifies an action for the computer to perform.

Statements are usually made up of function calls and a number of expressions (such as the assign and math operators). Statements can also contain other statements. For example, an "if" statement also contains the statements that need to be executed if the conditional is true or false.

Explore Ruby
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Ruby
  4. Glossary
  5. S - Z
  6. Statement

©2009 About.com, a part of The New York Times Company.

All rights reserved.