Elmo HARSFEN0602, HARmonica Logical Greater than or equal, Logical Less than, Logical or

Models: HARmonica HARSFEN0602

1 220
Download 220 pages 51.63 Kb
Page 25
Image 25

HARSFEN0602ElmoHARmonicaSoftwareManual

PRELIMINARYDRAFT

 

 

 

 

Notation

>

 

 

Description

Logical greater than

 

 

Number of

2

 

 

arguments

 

 

 

Output type

0 or 1 (0 equals to false, 1 equals to true)

 

 

Example

if x=3 and y=3 as x>y yields 0

 

 

 

if x=3 and y=2 as x>y yields 1

 

 

 

if x=1 and y=2 as x>y yields 0

 

 

4.2.4.13Logical Greater than or equal

Notation

>=

Description

Logical greater than or equal

Number of

2

arguments

 

Output type

0 or 1 (0 equals to false, 1 equals to true)

Example

if x=3 and y=3 as x>=y yields 1

 

if x=3 and y=2 as x>=y yields 1

 

if x=1 and y=2 as x>=y yields 0

4.2.4.14Logical Less than

Notation

<

Description

Logical less than

Number of

2

arguments

 

Output type

0 or 1 (0 equals to false, 1 equals to true)

Example

if x=3 and y=3 as x<y yields 0

 

if x=3 and y=2 as x<y yields 0

 

if x=1 and y=2 as x<y yields 1

4.2.4.15Logical Greater than or equal

Notation

<=

Description

Logical greater than or equal

Number of

2

arguments

 

Output type

0 or 1 (0 equals to false, 1 equals to true)

Example

if x=3 and y=3 as x<=y yields 1

 

if x=3 and y=2 as x<=y yields 0

 

if x=1 and y=2 as x<=y yields 1

4.2.4.16Logical AND

Notation

&&

Description

Logical AND. The result is 1 if both arguments are nonzero, 0 if any is zero.

 

The arguments are not truncated to integers before evaluations

Number of

2

arguments

 

Output type

0 or 1

Example

1 && 5 yields 1

0.21&& 2 yields 1 0 && 2 yields 0

4.2.4.17Logical OR

23

Page 25
Image 25
Elmo HARSFEN0602, HARmonica software manual Logical Greater than or equal, Logical Less than, Logical or