Activity Forums Salesforce® Discussions What is the use if:false and if:true in LWC?

  • Shweta

    Member
    December 18, 2020 at 2:48 pm

    template if:true in LWC is used for Conditional Rendering to display markup or DOM elements dynamically if true value is provided. template if:false works in the same way but with the false value. But template if:true or template if:false does not support the Conditional Statements. For example, we can write template if:true={boolVariable} but we can not write template if:true={number>10}.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos