vipsi - the friendly vip script interpreter

Functions

Numeric functions

count

<number> = Numeric functions: countcount <text>
<number> = Numeric functions: countcount <list>

<number> = Numeric functions: countcount ( <text> )
<number> = Numeric functions: countcount ( <list> )

Querry Flow control: if … then
Flow control: try … then
the
Glossary: number, num_valnumber of elements in a Data Types: Text
Item selector "[]": Text
Glossary: text, text_val
text
Operators: Boolean Or with Variable "||="
Operators: Bitwise Or with Variable "|="
Operators: Bitwise Or "|"
Operators: Boolean Or "||"
or
in a Data Types: Lists and arrays
Item selector "[]": Lists
Glossary: list, list_val
list
.

Flow control: returnReturns a numeric Glossary: Valuevalue.

You can also Numeric functions: countcount Flow control: if … then
Flow control: try … then
the
Glossary: number, num_valnumber of entries in a directory Operators: Boolean Or with Variable "||="
Operators: Bitwise Or with Variable "|="
Operators: Bitwise Or "|"
Operators: Boolean Or "||"
or
Flow control: if … then
Flow control: try … then
the
dir: lengthlength of a Text functions: file
Instructions: file
file
. But List functions: thisthis effectively works, because Flow control: if … then
Flow control: try … then
the
Vipsi command syntax: Functions
Functions
Glossary: Function
function
List functions: dir
Instructions: dir
Shell Immediate Commands: dir
dir
returens a Data Types: Lists and arrays
Item selector "[]": Lists
Glossary: list, list_val
list
Operators: Boolean And with Variable "&&="
Operators: Bitwise And with Variable "&="
Operators: Bitwise And "&"
Operators: Boolean And "&&"
and
Vipsi command syntax: Functions
Functions
Glossary: Function
function
Text functions: file
Instructions: file
file
Flow control: returnreturns a Glossary: text, text_valtext value. (Version 0.8.7) List functions: thisThis will be improved.

As with all Vipsi command syntax: Functions
Functions
Glossary: Function
functions
which accept exactly one Vipsi command syntax: Arguments
Glossary: Arguments
argument
Flow control: if … then
Flow control: try … then
the
Separators: Round brackets "( … )"
Functions with varying return types: bracket expression "()"
parenthesis
are optional Operators: Boolean And with Variable "&&="
Operators: Bitwise And with Variable "&="
Operators: Bitwise And "&"
Operators: Boolean And "&&"
and
may be omitted Flow control: if … then
Flow control: if … then
if the
Vipsi command syntax: Arguments
Glossary: Arguments
argument
is no Vipsi command syntax: Expressions
Glossary: Expression
expression
with Vipsi command syntax: Operators
Operators
Glossary: Operator
operators
.

e.g.:

vipsi> Numeric functions: countcount List functions: globals
Shell Immediate Commands: globals
globals
0 vipsi> Numeric functions: countcount{1,2,3,4,5} 5 vipsi> Numeric functions: countcount "12345" 5 vipsi> Numeric functions: countcount List functions: env
Shell Immediate Commands: env
Shell Immediate Commands: env
env
40 vipsi> Numeric functions: countcount List functions: dir
Instructions: dir
Shell Immediate Commands: dir
dir
"."
26 vipsi>

Valid HTML   Valid CSS