asgen
behaves like any other Stata program, considering cases where the if the condition is met, and ignoring all others. Reply To: How to find weighted average mean with asgen using the IF condition
Dan
I am a bit unclear about your question. If you can come up with some dummy data to show me what you expect from using the if condition.