1
1
Fork 0
mirror of https://github.com/DualBrain/QB64.git synced 2023-11-19 13:10:13 +00:00
QB64-website/wiki/Question-mark.md
2022-12-24 19:12:43 -06:00

619 B

A question mark can be used as a substitute shortcut to typing PRINT when creating code.

Usage

? "Hello world"


PRINT "Hello world"

  • When the IDE cursor moves to the next code line, the question mark is changed to PRINT and the prompt text and variable are spaced appropriately.
  • When an INPUT statement has no text, a question mark will appear before the input.
  • A semicolon after the INPUT prompt text will add a question mark after the statement.

See Also