> Hi,
> 
> When Im looping through as cgi that loops through records in a table,
I do 
> a print statement of a variable.
> Example
> 
> if($condition eq "G")
> {
>    print $field1;
> }
> 
> why does it print all the occurances of the fields in the table, as only 
> one of them fits the criteria of equaling "G". Is there some sort of way 
> to only print the value that is true for that instance?
> 

Show us some more code. 

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to