website link help

Discussion in 'Tally Developer' started by gauravss, Jun 6, 2023.

    
  1. gauravss

    gauravss Member


    [Field:wesite]
    Use:Name field
    Set As: If @@EIBasicShippedBy = "SHREE TIRUPATI COURIER" then $Website:Ledger:mad:@EIBasicShippedBy+$$String:mad:@EIBasicShipDocumentNo else $Website:Ledger:mad:@EIBasicShippedBy
    Color:Blue
    ;skip:Yes

    above work perfectly
    but i need to add other name also but its not working
    let me know where its wrong

    [Field:wesite]
    Use:Name field
    Set As: If ((@@EIBasicShippedBy = "SHREE TIRUPATI COURIER") or @@EIBasicShippedBy = "Subhod Logistic") then $Website:Ledger:mad:@EIBasicShippedBy+$$String:mad:@EIBasicShipDocumentNo else $Website:Ledger:mad:@EIBasicShippedBy
    Color:Blue
    ;skip:Yes

    help me with the frame this
     
    Last edited: Jun 6, 2023
    Rajsrisrimal likes this.


  2. gauravss

    gauravss Member


    i had asked chatgpt above problem and found this
    ans by chatgpt-------------------------------------
    It appears that there is a small error in the second condition of your "Set As" statement. You are missing the parentheses around the second comparison. Here's the corrected version:

    [Field:wesite] Use:Name field Set As: If ((@@EIBasicShippedBy = "SHREE TIRUPATI COURIER") or (@@EIBasicShippedBy = "Subhod Logistic")) then $Website:Ledger:mad:@EIBasicShippedBy+$$String:mad:@EIBasicShipDocumentNo else $Website:Ledger:mad:@EIBasicShippedBy Color:Blue ;skip:Yes

    By adding the parentheses around the second comparison, you ensure that the "or" operator works correctly, and both conditions are evaluated as expected.
     


Share This Page