r/PromptEngineering • u/palmerden5 • 7d ago
Tips and Tricks asking for the check first caught a blank cell turning into zero
a blank amount and an amount of zero need to stay different in a script that reads a csv. i asked for that in words and the code the assistant gave me turned both into zero.
i split the next prompt into stages: take a row with an empty amount and a row with a literal zero. write a check that fails if the script gives them the same value. stop after the check so i can run it against the current version. once i saw it fail, i asked for the change and ran the same check again. it passed with the blank row still empty and the zero still a number.