I do not think you can write subroutines like what you are trying to do in an update rule.
You could try putting all your code in an include and put the include in update rule. This might work.
What do you want to do ???
To validate data in the update rule?
You can do it of two ways, field by field or in the star routine.-
the difference is, in the start routine you can add or delete data ( complete row ), from infoSource, and in de Field routine you can only change de information of this field in particular.-
Add a comment