Author Topic: [v1.6.2] "{CMDSEGMENT}" does not work on non-dynamic commands/in subcommands  (Read 2485 times)

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4761
  • RTFM
If "{CMDSEGMENT:0}" is used with a command that has no dynamic sections, E.G. "this is a test;this is not a test", it will return "Not Set".

I feel it would be more useful if it functioned as "{CMD}" in this scenario, and returned the spoken phrase.


The above would be more relevant when used in a subcommand, as you may not know whether the calling command would have dynamic sections.

However, "{CMDSEGMENT:}" currently returns "Not Set" when used within a subcommand, rather than sections of the calling command's spoken phrase.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2825
The subcommands are not concerned with the calling command in regards to CMDSEGMENT.  If you somehow for whatever reason need to get command segment info to subcommands, you need to put them in scoped variables and access that way.