Saturday, March 15, 2014

The GTM $get operation

Introducing a new operation '$get' ('$g').
$get, try to retrieve the value then give it back or send its second parameter.
#GTM] s users("admin")="Administrator"
#GTM] s users("admin","password")="SecretP4ss"
#GTM] s users("admin","hint")="AntiNSQ"
#GTM] s user=$g(users("ADMIN"),"User not found")
#GTM] w user
User not found
#GTM] s user=$g(users("admin"),"User not found") w user
Administrator
#GTM]
Here's the code:

No comments:

Sticky