Skip to content

Commit 64e64b8

Browse files
author
Jin Han
committed
Logic fix.
1 parent a18b213 commit 64e64b8

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

docs/declarative-customization/column-formatting.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -539,19 +539,19 @@ This examples uses operator `loopIndex` and `length` to identify the last member
539539
"elmType": "span",
540540
"forEach": "region in @currentField",
541541
"txtContent": {
542-
"operator": "?",
543-
"operands": [
544-
"=loopIndex('region') + 1 != length(@currentField)",
545-
{
546-
"operator": "?",
547-
"operands": [
548-
"=loopIndex('region') == 0",
549-
"[$region.lookupValue]",
550-
"=', ' + [$region.lookupValue]"
551-
]
552-
},
553-
"=', and ' + [$region.lookupValue]"
554-
]
542+
"operator": "?",
543+
"operands": [
544+
"=loopIndex('region') == 0",
545+
"[$region.lookupValue]",
546+
{
547+
"operator": "?",
548+
"operands": [
549+
"=loopIndex('region') + 1 == length(@currentField)",
550+
"=', and ' + [$region.lookupValue]",
551+
"=', ' + [$region.lookupValue]"
552+
]
553+
}
554+
]
555555
}
556556
}
557557
]

0 commit comments

Comments
 (0)