Skip to main content

前後関係 (]])

左のオペランドが数値添え字の照合順序で右のオペランドの後に順番に並んでいるかを判定します。

詳細

前後関係演算子は、左のオペランドが数値添え字の照合順序で右のオペランドの後に順番に並んでいるかを判定します。 In numeric collation sequence, the null string collates first, followed by canonical numbers in numeric order with negative numbers first, zero next, and positive numbers, followed lastly by nonnumeric values.

前後関係演算子は、照合順序上で第 1 オペランドが第 2 オペランドよりも後に位置している場合に True (1) を、それ以外の場合に False (0) を返します。以下に例を示します。

 WRITE 122]]2

上記は、True (1) を返します。

 WRITE "LAMPOON"]]"LAMP"

上記は、True (1) を返します。

FeedbackOpens in a new tab