I will be adding support for evaluated strings in the next release of PPL. Any strings enclosed within the single quotes ' ' will be treated as:
1. Character ASCII value if only one character in the string.
2. Or an evaluated string if more than character are found in the string.
Example:
I hope people will like it, it will mostly be slower than a normal string but will offer a huge amount of flexibility.
1. Character ASCII value if only one character in the string.
2. Or an evaluated string if more than character are found in the string.
Example:
- Code:
a$ = 'A'; // a$ = 65
a$ = 'PPL version {version%}'; // a$ = "PPL version 0.8"
a$ = "Hello";
b$ = '{a$} World!'; // b$ = "Hello World"
a$ = "Result of 10 + 20 = {10+20}"; // a$ = "Result of 10 + 20 = 30"
I hope people will like it, it will mostly be slower than a normal string but will offer a huge amount of flexibility.