Keyword: IF
The if keyword is a sequential statement used for describing conditional logic.
Example
if A > B then
Compare <= GT;
elsif A < B then
Compare <= LT;
else
Compare <= EQ;
end if;
The condition expression of an if statement must be a Boolean logic expression (meaning that it must evaluate to a True or False value).
If statements are sequential, and may only be used in processes, procedures or functions.
LRM
8.7
See also