meta data for this page
  •  

ibec_Mod

Returns the remainder obtained by dividing its operands.

Description

No additional decription…

Syntax

   function ibec_mod(Operand1, Operand2 : integer) : integer;

Example

execute IBEBlock
returns (cout varchar(100))
as
begin
  i = 1;
  while (I < 50) do
  begin
    if (ibec_mod(i, 2) = 0) then
      cout = i || ' is even number';
    else
      cout = i || ' is odd number';
    suspend;
    i = i + 1;
  end
end