Forum Discussion

owneyjs15's avatar
owneyjs15
New Member
6 years ago
Solved

Correct Bracket Usage

Would someone be able to explain the correct usage of brackets in M. Particularly i'm trying to understand why this statement:

Html.Table(_, {"Style Number", ".style-number > SPAN:nth-child(1):nth-last-child(1)"})

fails but this one works:

Html.Table(_, {{"Style Number", ".style-number > SPAN:nth-child(1):nth-last-child(1)"}})

 (The second one has double curly brackets while the first has only one). I understand that they are used to define a list. Is it just that the Html.Table function requires a list of list to work properly?