toInt function

int toInt(
  1. bool value
)

Implementation

int toInt(bool value) {
  return value ? 1 : 0;
}