There are situations where you do not need to use the variable of a $list widget, for example when using $list to check a condition and then run the remaining code.
I have learned from codes shared in the community patterns like below
[Updated based on following users reply]
i.
<$list filter="..." variable="null">
...
ii.
<$list filter="..." variable="ignore">
...
iii.
<$list filter="..." variable="">
...
iv.
<$list filter="..." variable="0">
...
v.
<$list filter="..." variable=".">
...
vi.
<$list filter="..." variable=Ů€>
...
vii.
<$list filter="..." variable="none">
...
viii.
<$list filter="..." variable="dummy">
...
I myself like the third pattern <$list filter="..." variable="">
but I would appreciate developers to give their recommendation here.