Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Please read the forum rules before posting.

Check if you are posting in the correct category.

The Off Topic section is not meant for discussing Cookie Clicker.

"if" function involving resources

DtjiPsimfansDtjiPsimfans Posts: 211Member ✭✭
edited February 2018 in Games
I have tried creating an "if" statement which involves one of the resources available. Let's say we have "kWh" as a resource and we're trying the code below.

if (kWh > 0)
yield 1 block
yield 0 blocks

I tried that code and yet the building (which contains the if statement after "on tick:") still yields 1 block. Why is this happening?
Post edited by DtjiPsimfans on


Sign In or Register to comment.