Reference×
Reference
- [] (array access)
- = (assign)
- catch
- class
- , (comma)
- // (comment)
- {} (curly braces)
- /** */ (doc comment)
- . (dot)
- draw()
- extends
- false
- final
- implements
- import
- loop()
- /* */ (multiline comment)
- new
- noLoop()
- exit()
- () (parentheses)
- null
- pop()
- popStyle()
- public
- private
- pushStyle()
- push()
- redraw()
- return
- setLocation()
- ; (semicolon)
- setTitle()
- setResizable()
- setup()
- static
- super
- this
- thread()
- true
- try
- void
Name
true
Description
Reserved word representing the logical value "true". Only variables of type boolean may be assigned the value true.
Examples
rect(30, 20, 50, 50); boolean b = true; if (b == true) { line(20, 10, 90, 80); // This line is drawn } else { line(20, 80, 90, 10); // This line is not drawn }

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.