ezeio documentation
ezeio documentation

  1. Trace
  2. Celsius to Kelvin
  3. Alarm Information
  4. Random number
  5. Boolean

ezeio2:expref:bool

eze System Documentation

eze System Documentation

Go to eze.io

  • IMPORTANT INFORMATION
  • Introduction to the ezeio
  • Registration
  • Indicators
  • Installing the ezeio
  • Connecting Sensors and Peripherals
  • User Interface
  • Drivers
  • Expressions
  • Script reference
  • API reference
  • ezeio MkII I/O Expander (TEMPORARILY UNAVAILABLE)
  • Share via
    • Share via...
    • Twitter
    • LinkedIn
    • Facebook
    • Pinterest
    • Telegram
    • WhatsApp
    • Yammer
    • Reddit
  • Print
  • Permalink

Boolean

bool( a )

Returns 1 if the value a is larger than 0. Returns 0 if a is zero or negative.

Description

bool( a )

Returns 1 if the value a is larger than 0. Returns 0 if a is zero or negative.

Parameters

a Any value

Return value

If a>0, returns 1. Else returns 0.

Example usage

bool(3)

Returns 1.

  • ezeio2/expref/bool.txt
  • Last modified: 2019-09-02 18:48
  • by andreh
Log In