Last active
April 13, 2016 04:09
-
-
Save omar-yassin/0efe814cf29be33dfe1772b5e702e0be to your computer and use it in GitHub Desktop.
Powershell: pretty way to compare if string contains multiple strings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$failed_status_types = 'CREATE_FAILED', 'DELETE_FAILED', 'ROLLBACK_FAILED', 'UPDATE_ROLLBACK_FAILED' | |
if ($failed_status_types -match "some_string" ) { "si" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment