mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 05:04:39 +02:00
Update weather-alert.ps1
This commit is contained in:
@ -11,10 +11,10 @@ $GeoLocation="" # empty means determine automatically
|
||||
function Check {
|
||||
param ([int]$Value, [int]$NormalMin, [int]$NormalMax, [string]$Unit)
|
||||
if ($Value -lt $NormalMin) {
|
||||
return "$Value $Unit !"
|
||||
return "$Value $Unit ! "
|
||||
}
|
||||
if ($Value -gt $NormalMax) {
|
||||
return "$Value $Unit !"
|
||||
return "$Value $Unit ! "
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user