Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Lets take a biiig step back. If you are wanting to just play with GELLO in VS Code without the Comment GELLO context, thats fine.


Lets start with a "Hello World"


GELLO is strongly typed. A hover hint over _Result_ shows the type is String. Lets see how we can find out the type in the workspcae:

Assign the string to a local variable called a. Then check the type:


In the exe version of the editor the system would suggest we add the type at line 1. So let's do that, delete line 2, and see if there are any errors. This time Debug GELLO:

This is ok. GELLO is declarative. We haven't declared what we want the result to be. We would simply say a in line 2, but we could also say 1+1 

Ok to have fun with strings we could type a. and the autocomplete will show methods available for this datatype.

Let's play with the matches method, and yes the string called 'a' does match the parameter:

This works too: 

a.matches('Gello|Hello')