Find text FIND

Dest = where B first appears in A, or 0.

TagAfter two scans
Reply'OK:READY'
Token'READY'
TokenAt4

How it's used

Use FIND to check a reply contains a word.

TagValue
Reply'OK:READY'
Ready'READY'
At4
DeviceReady1

READY starts at position 4, so DeviceReady is on. 0 means not found.

Operands

OperandData typeRead or write
ASTRING or a numberReads
BSTRING or a numberReads
DestDINTWrites

Common mistakes

  • Treating the result as textThe result is a position, not text. 0 means B was not found.