...
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 workspcaeworkspace:
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, because GELLO is strongly typed; then delete line 2, and see if there are any errors. This time Debug GELLO says there is no final expression:
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 called 'a' does match the parameter:
This works too:
a.matches('Gello|Hello') |
---|