I have a problem with a 44 layout document, I want each record to print only the layout with the coresponding number using;

Code:
 IF(RECORD_NR()=LAYOUT_NR(), Print, Skip) 
But no pages are produced, where am I going wrong?