Does somebody knows how can I have a int from a string for a shortcode experiment I’m running?
{{% book 2 %}}
{{ $a := .Get 0 }}
{{ index ( index $csv 5 ) $a }}
It should print $a
as 2
, but for some screwy reason it doesn’t.
error calling index: cannot index slice/array with type string
I need me an int from that string! The number can be as high as 500, so I can’t go the if/condditional way.