Search notes:

vim script: type

type(var) can be used to determine the type of a variable.
"
" ..\run_ type
"

redir > type.out

echo type(42)
" 0

echo type("foo")
" 1

echo type(function("type"))
" 2

echo type([1, 2, 3])
" 3

echo type({1: 'one', 2: 'two', 3: 'three'})
" 4

echo type(42.42)
" 5

echo type(42 == 42)
" 0

redir END
q
Github repository about-vim, path: /vimscript/functions/type.vim

See also

Vim: built in functions
VIM script

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758184259, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/vim/script/vimscript/functions/type(72): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78