The subscriptions page uses a combination of $IF and $repeat. The if statement is used in the event there are no mailing lists to display, and the repeat command generates a repeating list.
$if -myaccountlists$
$repeat -myaccountlists$
$value -myaccountlist(name)$
$value -myaccountlist(description)$
$input -id'enteruniquenamehere' -myaccount(list)$ <-- Creates a check box for subscribing to the list
$endrepeat$
$else$
No Mailing Lists
$endif$