Friday, October 2, 2020

How to write IF ELSE condition under LWC .html file:

Below is the block of code to use If/Else condition under LWC UI (.html file). Condition variable you can defined under .js file.

<!-- If Condition-->
    <template if:true={your_Variable_defined_in_JS}>
        <!-- Put your UI logic here. -->
    </template>
    <!-- Else Condition-->
    <template if:false={your_Variable_defined_in_JS}>
        <!-- Put your UI logic here. -->
    </template>


Data Cloud Part 6: Practical (Ingest Physical Store's Customer details and Sales details)

Hope you have already created your Data Cloud Org and also downloaded the Customer's details and Sales details from previous posts.  Now...