If I have an array built like so:
body: [
[ 'A', 'A value' ],
[ 'B', 'B value, other' ],
[ 'C', 'C value' ]
]
How can wrap an if statement around the C
so that the row is only added if the condition returns true? Something like this (pseudocode):
body: [
[ 'A', 'A value' ],
[ 'B', 'B value, other' ],
if (x == true) {
[ 'C', 'C value' ]
}
]