Library functions: logical operations |
The functions in this category allow to evaluate logical values; in Proteus, every value different from 0 is considered TRUE and 0 is considered FALSE, just like in 'C'.
AND([@]n1, [@]n2[, n3..])
logical AND; returns a number different from 0 if and only if all the values are different from 0
OR([@]n1, [@]n2[, n3..])
logical OR; returns a number different from 0 if and only if at least one value is different from 0
XOR([@]n1, [@]n2[, n3..])
logical exclusive OR; returns a number different from 0 if and only if at least one value is different from 0 and at least one value is 0
NOT([@]n)
logical NOT logico; returns a number different from 0 if and only if n is 0
Start of page | Next topic | Previous topic | Contents | Index |