Built-in Functions

Built-in Functions are described as "the ones that work without #including anything"

So they don't need you to #incd anything.

List of Built-in Functions

Basic functions

  • con.out{} Stands for 'console.output' and is used to output text and/or variables into the console. (e.g. con.out{<< "Hello World!"};)

  • con.readline{} Stands for 'console.readline' and is used to write user's input into a variable, it is considered the only function in JM- to be slightly breaking TIR, since it does not technically support the con.out{} function to be ran inside of itself. (e.g. con.readline{>> exampleVariable};)

  • Can also be used to write the same user input into multiple variables. (e.g. con.readline{>> exampleVariable1, exampleVariable2};)

  • con.read{} Stands for 'console.read' and " exists as a more complete alternative to 'con.readline{}' " the main difference between con.read{} and con.readline{} is that con.read{} accepts con.out{} as an option. (e.g. con.read{con.out{<< "Message"} >> exampleVariable};)

Error Handling (After the IDoEHD)

  • jtry{} Stands for 'JMDash Try' and is used to check if a statement will return errors, added with the IDoEHD. (e.g. jtry{<< con.out{Hello World! but outside of quotes};};)

  • jcatch{} Stands for 'JMDash Catch' and is used to catch errors that have been "tried" by jtry{} (e.g. jcatch{ErrorMacroCategory/SubCategory/Error >> con.out{"Wrong characters used for string data!"};};)

  • jthrow{} Stands for 'JMDash Throw' and is used to throw errors. (e.g. jthrow{>> ErrorMacroCategory/SubCategory/Error};)

There are other libraries/header files that were mentioned at the very end of IDD, and are detailed about in the IDoLD.

Last updated