Included the case of logic function in the "else" case.
Included the case of logic function in the "else" case.

farhaanbukhsh/sympy,atsao72/sympy,beni55/sympy,emon10005/sympy,kaichogami/sympy,yashsharan/sympy,lindsayad/sympy,hargup/sympy,kaushik94/sympy,Vishluck/sympy,yashsharan/sympy,asm666/sympy,chaffra/sympy,bukzor/sympy,sahmed95/sympy,abhiii5459/sympy,kumarkrishna/sympy,yashsharan/sympy,jaimahajan1997/sympy,Titan-C/sympy,bukzor/sympy,toolforger/sympy,jamesblunt/sympy,pandeyadarsh/sympy,souravsingh/sympy,lindsayad/sympy,atreyv/sympy,diofant/diofant,grevutiu-gabriel/sympy,kaichogami/sympy,ga7g08/sympy,moble/sympy,jerli/sympy,jbbskinny/sympy,saurabhjn76/sympy,bukzor/sympy,mcdaniel67/sympy,Davidjohnwilson/sympy,Gadal/sympy,aktech/sympy,jaimahajan1997/sympy,dqnykamp/sympy,postvakje/sympy,moble/sympy,mafiya69/sympy,Gadal/sympy,iamutkarshtiwari/sympy,ahhda/sympy,abhiii5459/sympy,Curious72/sympy,sahmed95/sympy,ChristinaZografou/sympy,cswiercz/sympy,Designist/sympy,garvitr/sympy,sampadsaha5/sympy,Curious72/sympy,abhiii5459/sympy,mcdaniel67/sympy,Arafatk/sympy,vipulroxx/sympy,VaibhavAgarwalVA/sympy,grevutiu-gabriel/sympy,Shaswat27/sympy,pbrady/sympy,debugger22/sympy,cccfran/sympy,liangjiaxing/sympy,abloomston/sympy,debugger22/sympy,MechCoder/sympy,mafiya69/sympy,sunny94/temp,emon10005/sympy,garvitr/sympy,sahilshekhawat/sympy,ChristinaZografou/sympy,Mitchkoens/sympy,maniteja123/sympy,Sumith1896/sympy,Mitchkoens/sympy,rahuldan/sympy,AunShiLord/sympy,meghana1995/sympy,ahhda/sympy,beni55/sympy,kevalds51/sympy,sunny94/temp,jaimahajan1997/sympy,Designist/sympy,Vishluck/sympy,abloomston/sympy,vipulroxx/sympy,kevalds51/sympy,yukoba/sympy,pandeyadarsh/sympy,farhaanbukhsh/sympy,kaushik94/sympy,cccfran/sympy,kaushik94/sympy,sampadsaha5/sympy,skidzo/sympy,jamesblunt/sympy,Designist/sympy,liangjiaxing/sympy,Vishluck/sympy,jbbskinny/sympy,ahhda/sympy,meghana1995/sympy,rahuldan/sympy,liangjiaxing/sympy,Davidjohnwilson/sympy,MridulS/sympy,Sumith1896/sympy,aktech/sympy,madan96/sympy,wyom/sympy,abloomston/sympy,madan96/sympy,saurabhjn76/sympy,pandeyadarsh/sympy,yukoba/sympy,emon10005/sympy,wanglongqi/sympy,madan96/sympy,shikil/sympy,wyom/sympy,postvakje/sympy,jerli/sympy,asm666/sympy,meghana1995/sympy,atsao72/sympy,MechCoder/sympy,shipci/sympy,iamutkarshtiwari/sympy,grevutiu-gabriel/sympy,dqnykamp/sympy,postvakje/sympy,jamesblunt/sympy,AkademieOlympia/sympy,skidzo/sympy,maniteja123/sympy,Gadal/sympy,debugger22/sympy,jbbskinny/sympy,pbrady/sympy,aktech/sympy,oliverlee/sympy,toolforger/sympy,saurabhjn76/sympy,AkademieOlympia/sympy,Mitchkoens/sympy,MridulS/sympy,sahilshekhawat/sympy,Titan-C/sympy,wyom/sympy,dqnykamp/sympy,rahuldan/sympy,cswiercz/sympy,drufat/sympy,MridulS/sympy,Davidjohnwilson/sympy,shikil/sympy,Curious72/sympy,drufat/sympy,oliverlee/sympy,lindsayad/sympy,sunny94/temp,shikil/sympy,chaffra/sympy,wanglongqi/sympy,vipulroxx/sympy,Arafatk/sympy,asm666/sympy,pbrady/sympy,garvitr/sympy,VaibhavAgarwalVA/sympy,kaichogami/sympy,maniteja123/sympy,beni55/sympy,kevalds51/sympy,skirpichev/omg,atsao72/sympy,skidzo/sympy,toolforger/sympy,Arafatk/sympy,Shaswat27/sympy,wanglongqi/sympy,kumarkrishna/sympy,Sumith1896/sympy,sampadsaha5/sympy,mcdaniel67/sympy,kumarkrishna/sympy,ga7g08/sympy,mafiya69/sympy,ga7g08/sympy,souravsingh/sympy,iamutkarshtiwari/sympy,sahilshekhawat/sympy,Shaswat27/sympy,atreyv/sympy,AunShiLord/sympy,cccfran/sympy,hargup/sympy,drufat/sympy,AkademieOlympia/sympy,hargup/sympy,sahmed95/sympy,VaibhavAgarwalVA/sympy,souravsingh/sympy,shipci/sympy,moble/sympy,atreyv/sympy,Titan-C/sympy,oliverlee/sympy,ChristinaZografou/sympy,yukoba/sympy,shipci/sympy,AunShiLord/sympy,MechCoder/sympy,jerli/sympy,cswiercz/sympy,chaffra/sympy,farhaanbukhsh/sympy