Powershell Coding Journal 2

satya - 6/14/2024, 6:37:35 PM

Built in operators

  1. -eq: Equal to
  2. -ne: Not equal to
  3. -gt: Greater than
  4. -ge: Greater than or equal to
  5. -lt: Less than
  6. -le: Less than or equal to
  7. -like: Match using wildcard comparison
  8. -notlike: Not match using wildcard comparison
  9. -match: Match using regular expression
  10. -notmatch: Not match using regular expression
  11. -contains: Contains
  12. -notcontains: Does not contain
  13. -in: In
  14. -notin: Not in
  15. -and: Logical AND
  16. -or: Logical OR
  17. -not: Logical NOT
  18. -band: Bitwise AND
  19. -bor: Bitwise OR
  20. -bxor: Bitwise XOR
  21. -bnot: Bitwise NOT
  22. -shl: Bitwise shift-left
  23. -shr: Bitwise shift-right
  24. -split: Splits a string into an array
  25. -join: Joins an array into a string
  26. -is: Is of type
  27. -isnot: Is not of type
  28. -as: Converts to a specified type