diff --git a/FHEM/99_Utils.pm b/FHEM/99_Utils.pm index 5c1c46f40..b162b58ee 100644 --- a/FHEM/99_Utils.pm +++ b/FHEM/99_Utils.pm @@ -175,6 +175,11 @@ sub UntoggleIndirect($$$) return; } +sub +IsInt($) +{ + defined $_[0] && $_[0] =~ /^[+-]?\d+$/; +} 1;