Šablon:Str gtr str/dok

Izvor: Vojna Enciklopedija
< Шаблон:Str gtr strOvo je najnovija verzija ove stranice; nema odobrenih izmena.
Pređi na navigaciju Pređi na pretragu

Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted

Compares two strings for alphabetical order, and returns a value accordingly

Usage

{{Str gtr str|first string|second string|value if true|value if false}}

Examples

  • {{Str gtr str|zebra|aardvark|zebra comes after aardvark|aardvark comes after zebra}} returns aardvark comes after zebra
  • {{Str gtr str|cat|dog|cat comes after dog|dog comes after cat}} returns dog comes after cat
  • {{Str gtr str|same text|same text|true|false}} returns false

Note that the strings are case dependant, and sorted in order of ASCII characters, so {{Str gtr str|Romeo|juliet|true|false}} returns false

Limitations

Only the first four characters of the strings are analysed, so that (for example) {{Str gtr str|Wikipedia|Wikicommons|true|false}} returns false. ASCII characters outside the range 32-126 are treated as a space.

See also

Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted