Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Price updating script ideas

by spartacus9 (Beadle)
on Sep 25, 2002 at 14:24 UTC ( [id://200630]=note: print w/replies, xml ) Need Help??


in reply to Price updating script ideas

The problem is in how you structured your "if ($opcost = 0)" statement. when you declare "if ($opcost = 0)", you are actually setting the value of $opcost to zero, not checking it's value. try "if ($opcost == 0)" instead. the == is for comparison, the single "=" is for setting the variable.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://200630]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-25 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found