mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-27 21:42:06 +00:00
Implement === and !== string comparison operators (#1832)
This commit is contained in:
13
man/rgbasm.5
13
man/rgbasm.5
@@ -586,6 +586,19 @@ is equivalent to
|
||||
or to
|
||||
.Ql STRCAT("str", \&"ing") .
|
||||
.Pp
|
||||
You can use the
|
||||
.Sq ===
|
||||
and
|
||||
.Sq !==
|
||||
operators to compare two strings.
|
||||
.Ql \&"str" === \&"ing"
|
||||
is equivalent to
|
||||
.Ql STRCMP("str", \&"ing") == 0 ,
|
||||
and
|
||||
.Ql \&"str" !== \&"ing"
|
||||
is equivalent to
|
||||
.Ql STRCMP("str", \&"ing") != 0 .
|
||||
.Pp
|
||||
The following functions operate on string expressions, and return strings themselves.
|
||||
.Bl -column "STRSLICE(str, start, stop)"
|
||||
.It Sy Name Ta Sy Operation
|
||||
|
||||
Reference in New Issue
Block a user