Mr. Jinx Well-known member Sep 7, 2021 #1 Code: {{ dump($myArr) }} Code: array:10 [▼ 1 => 1 2 => 2 3 => 3 4 => 4 5 => 5 6 => 6 7 => 7 8 => 8 9 => 9 10 => 10 ] I want to check if this array has more than 5 rows, how would you check this within a template? Something like <xf:if is="{$myArr[0]} >5">...</xf:if> ?
Code: {{ dump($myArr) }} Code: array:10 [▼ 1 => 1 2 => 2 3 => 3 4 => 4 5 => 5 6 => 6 7 => 7 8 => 8 9 => 9 10 => 10 ] I want to check if this array has more than 5 rows, how would you check this within a template? Something like <xf:if is="{$myArr[0]} >5">...</xf:if> ?