The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-06-2007
natdeamer natdeamer is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 3
Simple awk If Satement question.

Trying to write an if statement, which calls2 or 3 functions from within it.

code:

{if (($34 != "") && (NR != 1) && ($1 != "F"))
less_than(34, 0, "S1002a")
is_number(34,"S1002a")
}

But this is only treating the first function call, as part of the if.
and always executes is_number. even if the if fails.

Probably a simple error.....?