[SOLVED] AR Custom rules

Hello,

Is it possible to make dependent rules on attribute? Example: i have users table with 2 types of users: private person and company person. how to write all rules in rules function without using custom functions of rules.

Thank you.

found solution, made custom scenarios for specific type of user.

Care to post sample code ?