You can try [[ -v ${varname:1} ]] and (( $+parameters[${varname:1}] )). ${varname:1} removes the leading plus. If you can change your code so that the plus isn't added, it gets simpler. Roman. On Mon, May 27, 2019 at 9:46 PM Sebastian Gniazdowski < sgniazdowski@gmail.com> wrote: > Hello, > simple test: > > a=1 > varname='+a' > echo ${(P)varname} > > yields empty output. Is there any way to use the $+var syntax with (P) > flag? > > -- > Sebastian Gniazdowski > News: https://twitter.com/ZdharmaI > IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin > Blog: http://zdharma.org >