nomsu/compatibility/3.7.nom

34 lines
1.4 KiB
Plaintext
Raw Normal View History

2018-12-14 20:21:03 -08:00
#!/usr/bin/env nomsu -V5.12.12.8
#
This file defines upgrades from Nomsu <3.7 to 3.7
use "compatibility/compatibility.nom"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2018-12-14 20:21:03 -08:00
upgrade action [$index st to last in $list] to "3.7" as ($list|$index st to last)
upgrade action [$index nd to last in $list] to "3.7" as ($list|$index nd to last)
upgrade action [$index rd to last in $list] to "3.7" as ($list|$index rd to last)
upgrade action [$index th to last in $list] to "3.7" as ($list|$index rd th last)
upgrade action [last in $list] to "3.7" as ($list|last)
upgrade action [first in $list] to "3.7" as ($list|first)
upgrade action [$item is in $list, $list contains $item, $list has $item] to \
.."3.7" as ($list|has $item)
upgrade action [..]
2018-12-14 20:21:03 -08:00
$item isn't in $list, $item is not in $list, $list doesn't contain $item
$list does not contain $item, $list doesn't have $item, $list does not have $item
..to "3.7" as (not ($list|has $item))
2018-12-14 20:21:03 -08:00
upgrade action [$list has key $index, $list has index $index] to "3.7" as (..)
$list.$index != (nil)
2018-08-30 14:16:09 -07:00
upgrade action [..]
2018-12-14 20:21:03 -08:00
$list doesn't have key $index, $list does not have key $index
$list doesn't have index $index, $list does not have index $index
..to "3.7" as ($list.$index == (nil))
upgrade action [..]
2018-12-14 20:21:03 -08:00
number of keys in $list, len $list, || $list ||, length $list, length of $list
..to "3.7" as (size of $list)