Results 1 to 3 of 3

Thread: Daily Special

  1. #1

    Default Daily Special

    Is there a way to access what the daily special is inside an ash script?

  2. #2
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,604

    Default

    Do you mean something like
    Code:
    > ash daily_special().to_string()
    
    Returned: strawberry popsicle
    Or was there a different daily special? FYI, if you don't throw the .to_string() on there, it'll give it to you as an unambiguous $item[] record instead, but for short-quote sake, I turned it into a string.

  3. #3

    Default

    Perfect, thank you for the code and the tip about to_string!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •