function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
d.tejdeep@nicomatic.ind.tejdeep@nicomatic.in 

Cant able to get false condition ui:inputcheckbox ?

<ui:inputcheckbox  value="{!v.BatchInstance.Discount__c}" aura:id="disc" change="{!c.discountvalidation}"/>

discountvalidation : function(component, event, helper){
 var disc = component.find("disc");
    var discvalue = disc.get("v.value");  
        if(discvalue=true){
            alert("true");
        }
        if(discvalue=false){
            alert("false");
        }

I cant able to see false alert by deselecting the checkbox 
sfdcMonkey.comsfdcMonkey.com
everything is okay here except one thing on line number 6 and 9, you need to use == to compare 2 variables.

use below code :
({
    discountvalidation : function(component, event, helper){
        var disc = component.find("disc");
        var discvalue = disc.get("v.value");  
        if(discvalue == true){
            alert("true");
        }
        if(discvalue == false){
            alert("false");
        }
    }     
    
})

Thanks let us know if it helps you and close your query with best answer if you got your answer
http://sfdcMonkey.com
Raj VakatiRaj Vakati
try this
 
var disc = component.find("disc").get("v.value");
        if(disc ){
            alert("true");
        }else{
       
            alert("false");
        }