Skip to content

Msg

Name Mandatory Description Default Type
⬅️ Input The input is ignored. This shard displays a static message. Any
Output ➡️ The same variable that was inputted, unmodified. Any
Message No The message to display on the user's screen or console. `` String
Level No The level of logging. LogLevel::Info LogLevel

Displays the passed message string to the user via standard output. The input variable is ignored, and only the static message is displayed.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
@template(msgshard [a b] {
  Msg(a LogLevel::Warning) ; ; print value of 1st arg passed
  Msg(b LogLevel::Error)
})
; ; print value of 2nd arg passed

@wire(main-wire {

  Msg("Hello World" LogLevel::Info) ; ; prints string
  @msgshard("Bye" "Universe")

})

@mesh(main)
@schedule(main main-wire)
@run(main)


 

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
@template(msgshard [a b] {
  Msg(a) ; ; print value of 1st arg passed
  Msg(b)
})
; ; print value of 2nd arg passed

@wire(main-wire {

  Msg("Hello World") ; ; prints string
  @msgshard("Bye" "Universe")

})

@mesh(main)
@schedule(main main-wire)
@run(main)