xxxxxxxxxx
= Checks if the values of two operands are equal or not, if yes, then condition becomes true. (A = B) is not true.
<> Checks if the values of two operands are equal or not, if values are not equal, then condition becomes true. (A <> B) is true.
> Checks if the value of left operand is greater than the value of right operand, if yes, then condition becomes true. (A > B) is not true.
< Checks if the value of left operand is less than the value of right operand, if yes, then condition becomes true. (A < B) is true.
>= Checks if the value of left operand is greater than or equal to the value of right operand, if yes, then condition becomes true. (A >= B) is not true.
<= Checks if the value of left operand is less than or equal to the value of right operand, if yes, then condition becomes true. (A <= B) is true.
xxxxxxxxxx
type
days, age = integer;
yes, true = boolean;
name, city = string;
fees, expenses = real;
xxxxxxxxxx
function name(argument(s): type1; argument(s): type2; ): function_type;
xxxxxxxxxx
Function Func_Name(params ) : Return_Value;
Procedure Proc_Name(params );
xxxxxxxxxx
type
Books = record
title: packed array [1..50] of char;
author: packed array [1..50] of char;
subject: packed array [1..100] of char;
book_id: integer;
end;
xxxxxxxxxx
if condition then begin statement(s) end;
if condition then statement;
xxxxxxxxxx
while condition do begin statement(s) end;
while condition do statement;
xxxxxxxxxx
with variable do begin statement(s) end;
with variable do statement;
xxxxxxxxxx
(* This is a multi-line comments
and it will span multiple lines. *)
{ This is a single line comment in pascal }