// con.out{} Stands for 'Console.Output'
// Used to output text and/or variables into the console.
// Syntax (spaced): con.out{ << <dataToOutput> };
con.out{<< "Hello World!"}; // Output: Hello World!
// It can also be used for mathematical operations
con.out{<< 1 + 1}; // Output: 2
// con.read{} Stands for 'Console.Read'
// Used to read user's input and store it into a variable
// Syntax (spaced): con.read{ >> <variableName> };
con.out{<< "Did you eat the dog? "};
str exampleString;
con.read{>> exampleString};
Error Handling Functions
// jtry{} Stands for 'JMDash Try'
// Used to check if a statement will return errors
// Syntax (spaced): jtry{ << <possiblyWrongCodeHere> };
jtry{<<
str myString = MyText; // Code that will trigger errors (missing quotes)
};
// jcatch{} Stands for 'JMDash Catch'
// Used to catch errors that have been "tried" by jtry{}
// Find the error location in the Error Tree (on JMDash Docs)
// Syntax (spaced): jcatch{<errorLocation> >> <possiblyWrongCodeHere>};
jcatch{ SyntaxError/WrongSyntaxOnDataType/WrongSyntaxOnString };
// jcatch{} can also "try" errors itself;
jcatch{ SyntaxError/WrongSyntaxOnDataType/WrongSyntaxOnString >>
str myString = MyText; // Code that will trigger errors (missing quotes)
};
// jthrow{} Stands for 'JMDash Throw'
// Used to throw errors, real simple :))
// Find the error location in the Error Tree (on JMDash Docs)
// Syntax (spaced): jthrow{ >> <errorLocation> };
jthrow{>> SyntaxError/WrongSyntaxOnDataType/WrongSyntaxOnString};