16 Replies Latest reply on Jan 14, 2014 11:08 AM by resdesign

    How to show a symbol if two others equal true

    zontaluma Level 1

      I'm sure this is cake but, heh :-/

       

      I have two symbols that are set to equal show when dragged ontop of a target

       

      sym.$('TARGET-PA1').droppable(

       

              {   

                  accept:sym.$('PURPLE-A-1'),

       

                  drop: function(){

       

                      sym.$('PROX-PURPLE-A-1').show();  //showing symbol one

       

                  }

              }

       

          );

      sym.$('TARGET-PA2').droppable(

       

              {   

                  accept:sym.$('PURPLE-A-2'),

       

                  drop: function(){

       

                      sym.$('PROX-PURPLE-A-2').show(); //showing symbol two

       

                  }

              }

       

          );

       

      I have another symbol that i want to .show()  when both are true  how do i do this?