Search notes:

PowerShell: -in operator

$value = 'bar'
if ($value -in 'foo', 'bar', 'baz') {
   write-host "$value is in array"
}

$value = 'xxx'
if ($value -notIn 'foo', 'bar', 'baz') {
   write-host "$value is not in array"
}
Github repository about-PowerShell, path: /language/operator/in/is-in-array.ps1

See also

-contains
operators

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/Windows/...', 1743566498, '18.191.86.218', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/language/operator/in(49): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78