Search notes:

vim script: comparing

"
"  ..\run_ comparing
"

redir > comparing.out

let a = [ 1   ,  2   ,  3     ]
let b = ['1'  , '2'  , '3'    ]
let c = ['one', 'two', 'three']
let d = [ 1   ,  2   ,  3     ]
let e = [ 3   ,  2   ,  1     ]

if a == b
   echo 'a == b'
else
   echo 'a != b'
endif
" a != b

if a == c
   echo 'a == c'
else
   echo 'a != c'
endif
" a != c

if a == d
   echo 'a == d'
else
   echo 'a != d'
endif
" a == d

if a == e
   echo 'a == e'
else
   echo 'a != e'
endif
" a != e

q
Github repository about-vim, path: /vimscript/arrays-and-hashes/comparing.vim

See also

array and hashes
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...', 1759561892, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/vim/script/vimscript/arrays-and-hashes/comparing(81): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78