Fortinet Document Library

Version:


Table of Contents

5.3.0
Download PDF
Copy Link

Operators

The table below lists Lua operators.

Type List

Relational operators

<> <= >= == ~=

Logic operators

not, and, or

test=str:sub(2,5)

debug("return: %s \n", test)

log("record a log")

result: “bcde”

For a tutorial on scripting with the Lua string library, see http://lua-users.org/wiki/StringLibraryTutorial.

Operators

The table below lists Lua operators.

Type List

Relational operators

<> <= >= == ~=

Logic operators

not, and, or

test=str:sub(2,5)

debug("return: %s \n", test)

log("record a log")

result: “bcde”

For a tutorial on scripting with the Lua string library, see http://lua-users.org/wiki/StringLibraryTutorial.