[- $fdat{aa} = 11 ; $fdat{bb} = 22 ; $fdat{cc} = 33 ; $fdat{dd} = 44 ; $t = 1 ; $f = 0 ; -] [- @ks = sort keys %fdat -]
[+ $ks[$row] +][+ $fdat{$ks[$row] || ''} +]
[$if $t $] [$endif$] [$if $t $]
[+ $ks[$row] +][+ $fdat{$ks[$row] || ''} +]
[$endif$] [$if $f $] [$endif$] [$if $f $]
[+ $ks[$row] +][+ $fdat{$ks[$row] || ''} +]
[$endif$]