Some Quick Examples to get you started with Plex
Simple for Loop
for(v i = 0; i < 5; i++){ //Something that needs to be done 5 times }
Don't like curly braces?
Lucky for you you don't need them! The Plex IDE will auto indent subsequent lines for you.
Lucky for you you don't need them! The Plex IDE will auto indent subsequent lines for you.
for(v i = 0; i < 5; i++) //Something that needs to be done 5 times
Like the built-in functions in PHP?
substr(sv string, iv start, [, iv length]);
Like starting your variables with a $ ?
substr(sv $string, iv $start, [, iv $length]);
no problem!
Prefer Java like methods?
$haystack.strpos(sv $needle);
no problem!
Need to ensure a variable is of a certain type?
sv string var cv char var iv int var fv float var bv boolean var
no problem just define it that way to lock it in.
Download the Plex live compiler and see what you can make.
Then add your examples to the the wiki!