I have a script as follow :
Int MethodOne (int param) {
If (param > 5) {
Return 0;
}
Return param;
}
Int MethodTwo (int param) {
If (param > 5) {
Return 0;
}
Return param * anotherVariable;
}
Is it possible to apply the conditional 'method should not execute if param > 5' to all my methods without rewriting it inside every method?