delphi if语句
In Delphi, the if statement is used to test for a condition and then execute sections of code based on whether that condition is True or False.
在Delphi中 ,if语句用于测试条件 ,然后根据该条件是True还是False执行代码段。
A general if-then-else statement looks like this:
一般的if-then-else语句如下所示:
if <condition> then <true block> else <false block>;
Both the "true block" and the "false block" can either be a simple statement or a structured statement (surrounded with a begin-end pair).
“ true块”和“ false块”都可以是一个简单的语句,也可以是一个结构化的语句(以一个begin-end对包围)。