g.js — graphical objects for JavaScript

booleanboolean

Create a boolean value that can be used as a variable.

g.boolean(true);

By itself this seems rather silly, but in networks, this becomes a useful node because it can be used as a variable. You can use it to store a boolean that you use in several places in your network, for example whether an element is visible or not.

See Also

  • number: Create a number value.
  • string: Create a string value.
  • color: Create a color value.
  • boolean: Create a boolean value.