Monkey2 tips

This is an endless article containing my favourite tips about monkey2.

Use semicolon to make single line expression:

If Not value Print “incorrect value” ; Return

Use String.Split() method to convert string into array of strings:

RegisterCodeExtensions( “.json”.Split( ” ” ) )

or  RegisterCodeExtensions( New String[]( “.json”  ) )

Use indexer operator for single chars to compare-string-by-chars (like “:”[0]):

Local colon:=”:”[0]

If line[i]=colon …. Endif

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s