Cobra Interactive Query Language =

NAME

= -- print a user-defined string with a value for each marked token

SYNTAX

	=
	= "string"
	= "string" expression
	= (expression)

DESCRIPTION

When no arguments are provided, the command prints the number of currently marked tokens. If a string argument is given, the output is prefixed with that string.
If an expression is present, the command prints the string (if present) and the value of the expression for every currently marked token.
Two things are important to note:
  • If no tokens are marked (yet), and an expression is used, nothing is printed.
  • The expression used should yield a numeric value, and not a string (that is, using .txt or .fnm by themselves will not work).

EXAMPLES

	: m do		# all do-loops
	: =		# print the nr of current matches
	: n		# move to {
	: = "number of lines:" .range
	: = (.range)

NOTES

If the string to be printed contains no spaces, the quote marks can be deleted. For instance:
	: = Range: .range

SEE ALSO

patterns

Return to index
Manual
Tutorial
(Last Updated: 22 May 2017/October 2016)