Should be easy, but can't figure out where it is wrong.
Lint score is 100.
Tried "nil" with and without quotes.
Purpose = Toggle the fb1 grid on or off with a bindkey.
Flow:
1. get grid visible status.
2. if on then turn off.
3. if off then turn on.
Problem: Turns it off but won't toggle it on.
code starts here:
procedure(MDTtoggleFB1( )
if( pteIsVisible("Grids;Snap Patterns;Local Grids;fb1" "Grids") == "nil"
then
pteSetVisible("Grids;Snap Patterns;Local Grids;fb1" t "Grids")
else
pteSetVisible("Grids;Snap Patterns;Local Grids;fb1" nil "Grids")
)
)