Dab tsi yog equalsIgnoreCase hauv Salesforce?
Dab tsi yog equalsIgnoreCase hauv Salesforce?

Video: Dab tsi yog equalsIgnoreCase hauv Salesforce?

Video: Dab tsi yog equalsIgnoreCase hauv Salesforce?
Video: Hmong new song 2016 - Yog dab tsi - Xub Hluav Taws (Official MV) 2024, Kaum ib hlis
Anonim

Siv cov qauv no los piv cov hlua rau ib yam khoom uas sawv cev rau txoj hlua lossis tus ID. equalsIgnoreCase (secondString) Rov qab muaj tseeb yog tias tus thib ob String tsis yog null thiab sawv cev rau tib cov kab ke ntawm cov cim raws li txoj hlua uas hu ua txoj kev, tsis quav ntsej rooj plaub.

Tsis tas li ntawd, txoj hlua hauv Salesforce yog dab tsi?

Apex - Cov hlua . Kev tshaj tawm. Txoj hlua hauv Apex , raws li nyob rau hauv lwm yam lus programming, yog ib pawg ntawm cov cim uas tsis muaj cim txwv. Piv txwv Txoj hlua companyName = 'Abc International'; Qhov system.

Tsis tas li ntawd, puas yog apex dawb? isBlank(inputString): Rov qab muaj tseeb yog tias txoj hlua teev yog qhov chaw dawb, khoob (''), lossis null; txwv tsis pub, rov qab tsis tseeb. isEmpty(inputString): Rov qab muaj tseeb yog tias txoj hlua uas tau teev tseg yog khoob ('') lossis null; txwv tsis pub, rov qab tsis tseeb. Yog li lub isEmpty() muaj nuj nqi yog ib tug subset ntawm isBlank() muaj nuj nqi.

Kuj kom paub, Kuv yuav siv li cas muaj nyob rau hauv Salesforce?

Cov Muaj muaj nuj nqi feem ntau yog siv nyob rau hauv validation thiab workflow txoj cai mus nrhiav ib tug cim los yog hlua nyob rau hauv ib tug ntawv teb. Muaj yuav rov qab TRUE yog tias "compare_text" pom nyob rau hauv "ntawv" thiab FALSE yog tias tsis yog. Qhov kev sib piv yog qhov tseem ceeb.

Dab tsi == txhais tau tias hauv Apex?

Tus neeg ua haujlwm sib npaug. Nco tseg: Tsis zoo li Java, == hauv Apex piv cov khoom muaj nqis vaj huam sib luag, tsis hais txog vaj huam sib luag, tshwj tsis yog rau cov neeg siv hom lus. Tus neeg siv-txhais hom yog piv los ntawm kev siv, uas txhais tau tias ob yam khoom ntawd yog sib npaug tsuas yog tias lawv siv tib qhov chaw hauv lub cim xeeb.

Pom zoo: