RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    IF/THEN Logic...

    Scheduled Pinned Locked Moved Projects and Themes
    themexmlcoding
    1 Posts 1 Posters 501 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cdaters
      last edited by cdaters

      Update I re-posted this in the Ideas and Development forum where this is more appropriate. I cannot delete it here, so please go there with any replies, etc.

      We need to somehow incorporate IF/THEN or rules login into the theming engine. Perhaps this can be controlled through the various XML files...?

      Such that, if certain values passed by XML content isn't properly formatted, or escaped somehow, the theme will respond accordingly. Like if instead of <releasedate>19851018T000000</releasedate> in a gamelist.xml file, it reads <releasedate>VARIOUS</releasedate>, the theme will return the text instead of a date?

      IF <releasedate> != "" {
        RETURN <releasedate>;
      } ELSE {
        RETURN "VARIOUS";
      }
      

      or something like that? Is this possible?

      1 Reply Last reply Reply Quote 1
      • First post
        Last post

      Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

      Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.