[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Did i amend wiki Like page correctly?


On 3/9/24 10:21, Bruce Steers wrote:
I looked at Like in wiki Like page and noticed a glitch so I amended it but though to check i was correct or not.
https://gambaswiki.org/wiki/lang/like <https://gambaswiki.org/wiki/lang/like>

I changed this...

	{aaa,bbb,...}  One of the strings between the square brackets. The strings are separated by commas.

to this...
{aaa,bbb,...}  One of the strings between the curly brackets. The strings are separated by commas.

because clearly those brackets are curly not square.

But i do not know Like very well and do not know if the error in the page is they should be square brackets or they should be curly and it should say curly.

Respects
BruceS


If we look at the last example, '"PRINT "Gambas" Not Like "M{$,onsanto,afia}"', we see that curly braces is for comma-separated *strings* whereas square braces are for (non-separated) *characters*.

I'd say it's correct.

--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


Follow-Ups:
Re: Did i amend wiki Like page correctly?Bruce Steers <bsteers4@xxxxxxxxx>
References:
Did i amend wiki Like page correctly?Bruce Steers <bsteers4@xxxxxxxxx>