.BusinessSimulation.Functions.boole

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

The function returns 1.0 if the Boolean input u is true and 0.0 in all other cases.

Syntax

Functions.boole(u)

Examples


Functions.boole(true);   // 1.0
Functions.boole(false); // 0.0

 

Interface

function boole
  extends BusinessSimulation.Icons.Function;
  input Boolean u "Boolean input";
  output Real y "Real output";
end boole;

Revisions


Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos