It seems to me like this is malformed, but it runs as if the rest is code, up to the end of the option or line… but removing the ].

So something like text^[1]2 means “text” has an odds of 12. And {text^[5]6|other} means the “text” option has an odds of 56. Is it meant to work like that, or should an error/warning be raised? @[email protected]

I only noticed because in my own list/perchance compiler I’m making that check and choosing to raise an error for it.

  • VioneTM
    link
    English
    14 months ago

    I think it is meant to work like that. But it is recommended that your odds are inside the square brackets.

    Anything after ^ is considered on the odds. So ^[1]2 would be ^12. For example, you have a variable a = {0-100}, then you have ^[a]/100 it would then be ^33/100 which would be the odds.

    p.s. Post Body Mentions doesn’t work
    @[email protected]

    • @wthit56OP
      link
      English
      14 months ago

      Ah right, you can have things like ^2*5 as well can’t you? (Though for some reason it does not allow +). Maybe it’s to make that work. I feel like it’s just easier (on the engine side at least) to just have [2*5] or [a/100]. Has exactly the same result, anyway.

      Weird mentions don’t work in the body. Don’t know why Lemmy wants people to make a comment on their own thing just to mention someone… Thanks for the heads up anyway 👍