Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Price updating script ideas

by spartacus9 (Beadle)
on Sep 25, 2002 at 14:24 UTC ( #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? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2023-05-28 00:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?