receive
Extract message from queue
Syntax
Description
tf
=
receive(
extracts an input or
local message from its receiving queue. If a valid message exists,
message_name
)receive
returns true
. If a valid message
does not exist but there is a message in the queue, the chart removes the message
from the queue and receive
returns true
. If a
valid message does not exist and there are no messages in the queue,
receive
returns false
.
Examples
Version History
Introduced in R2015b