I have a Rule I am setting up with a few paramaters called RequestName and WF. Admittedly I already added a bunch of if statement etc before I created the Rule. I want to check if RequestName is an empty object or not. If not query the RequestList to pull the object with the same RequestId. This part was already implemented, and I called this list Request and all the 10 different if statements are based off this varialbe. So I added the if empty before it and if it is empty just run what I already did… If not call Request the parameter I passed (RequestName). Problem is that I can name 2 variables the same thing (even though one wouldnt be instantiated because of the if statement. As you can see, I have all my if variables dependent on “Request” if I pass in the paramater and the obj isnt empty do I really have to go through and add additional logic if RequestName is empty then use request else use the other name??? I would highly doubt that would ever be the case. If it is, I don’t know what to say really… But if it isn’t, how can I handle this?
↧