Block indent

Updated: 06/22/2024 by Computer Hope

A block indent may refer to any of the following:

1. In general, a block indent is multiple lines of text that are indented. Most programs and websites that indent text block indent the paragraph or all text following the first line, unless it is a first-line indent or hanging indent.

2. With computer programming, a block indent or conditional block is a conditional statement or loop in code that's indented to make it easier to read and follow. Below is an example of a block indent for the if conditional statement.

if (conditional statement) {
 print "Computer Hope";
}

In the above example, the indentation is a single space. Instead of using spaces the Tab could also be used.

Alignment, Block, Hanging indent, Indent, Justification, Paragraph, Typography terms