Creating Advanced Constraint

@chur, this post discussed previously should help you solve your issue: