Project: QGIS

Version: 3.6.0

Feature: Square brackets to easily access map array elements

Allows expressions like:

  • array(1,2,3)[0] -> 1
  • array(1,2,3)[2] -> 3
  • array(1,2,3)[-1] -> 3 (Python style, negative indices count from end of array)
  • array(1,2,3)[-3] -> 1
  • map('a',1,'b',2)['a'] -> 1
  • map('a',1,'b',2)['b'] -> 2

This feature was developed by Nyall Dawson, Mathieu Pellerin