Meaning of ##

Discussion in 'Tally Developer' started by psr, Oct 29, 2020.

    
  1. psr

    psr Member


    This query may sound very silly, but I want to clear my confusion.


    Code:
    Action  : Set : Invisibleflag : NOT ##Invisibleflag
        Title   : if ##Invisibleflag then $$LocaleString:"NarrationYes" else $$LocaleString:"NarrationNo"
    
    
    What is the Meaning of ##InvisibleFlag?

    Action: Set: InvisibleFlag : Not ##InvisibleFlag ( My confusion is about ##)

    Invisible Flag is a Variable.
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    It is a Symbol to call the VARIABLE...........

    Refer to the PDF file attached here........ you can refer it anytime.
     

    Attached Files:

    psr likes this.


  3. Lynch

    Lynch Member


    Indeed, invisibleflag is variable, also it is a Logical variable

    Logical variables are like switches.. some times we need to on the switch and sometimes we need to off it.

    Logical operator Not is best pair to the logical variables for this switching operation

    So if invisible flag,if it is set to yes

    The code
    Action:set:invisible flag: not ##invisibleflag

    Will revert it to No.

    ## is to call the value already set in any variable

    So adding ## to a variable makes it a expression which will assign values to (another expression or variable) in the left hand side.




     
    psr likes this.


  4. psr

    psr Member


    Thank you for the support
     


Share This Page