Actually I am writing PIG Script and want to execute some set of statements if one of the condition is satisfied.
I have set one variable and checking for some value
You can create a Python wrapper around your Pig script. See Embedded Pig in the docs.