Announcement

Collapse
No announcement yet.

Inverted Block_If Logic

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Inverted Block_If Logic

    <moan>

    How many trial and errors does it take to get a complex Block_If working when you have to invert the logic to match the English? Grrr.

    I've just been coding some Block_If tests with multiple boolean checks and what a pain having to invert all the expression tests. OR to AND, == to <> etc.

    It's not a Block_If it's a Use_If !

    Is it only me?

    To compound my gripes today v903 IMMA has been crashing frequently and reporting non existant coding errors!

    </moan>

    #2
    LOL
    I remember being here (and I remember Lee being here before me )

    If you ignore the word BLOCK altogether, it all makes a whole lot more sense, IMO!
    Tracey

    Comment


      #3
      I seem to go through the same thing every time I use complex Block_If tests and I still make the same errors.

      You (well I do anyway) get into a state where you doubt what you've done and start changing the ==s to <>s but leave the ORs and ANDs, then you test by changing the ORs to ANDs, then you change back the <>s and ==s and test again etc etc.

      Eventually you forget what you've tested and start over again and lo and behold Actinic crashes and you loose what you just put in anyway!

      Not my day.

      Comment


        #4
        It's not a Block_If it's a Use_If !
        I assume Actinic is referring to a "Block of Code" rather than the verb "To Block", but agree when first learning it is a little confusing and Actinic should have given it a better name.
        Darren Guppy
        Golf Tee Warehouse
        Golf Tees and Golf Accessories.

        Comment


          #5
          LOL, we spoke about this about 2 years ago as it was driving me crazy too. I also forget the word block completely. BlockIfs and plain old blocks have a certain mystery to them, especially the plain old 'block', what the hell is that thing if you can specify it isn't to use php. It's like some far out language from a distant galaxy.

          PS Duncan - BlockIf is better as ShowIf rather than UseIf IMO

          It's definitely the word block as in 'create an obstacle', that throws you off.

          Comment


            #6
            I like ShowIf.

            It would be nice if this could be changed for V10, although how difficult this is and what problems would result when upgraded site from V9 I have no idea.
            Darren Guppy
            Golf Tee Warehouse
            Golf Tees and Golf Accessories.

            Comment


              #7
              Some of the old chat about blockif's is on http://community.actinic.com/showthread.php?t=31050 - with some good comment by Zoltan.

              Also you might find http://community.actinic.com/showthread.php?t=33677 useful as I posted there a tiny tool for turning the snippets of Actinic code posted on the forum (e.g. if="%3cactinic%3avariable%20name%3d%22SectionNamePrev%22%20%2f%3e%20%21%3d%20%22%22" ) into human readable text.
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                Think of it more as whatever is within this block appears if

                Originally posted by drounding
                reporting non existant coding errors!
                And super sensitive checking of duplicate extended info page variables that don't appear on the page anyway!

                Comment

                Working...
                X