help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Checking if variable is not zero with (())


From: fatiparty
Subject: Checking if variable is not zero with (())
Date: Wed, 1 Dec 2021 12:44:06 +0100 (CET)

I have been using integer comparisons with standard approach

(( n == 0 ))

But this time I want to check if the variable is not zero.  But some people 
have insisted that != is only for strings.  Is this correct?  How is this 
integer comparison customarily approached?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]