이것은 내 코드의 관련 부분입니다. 입력란에 par 변수의 값과 동일한 값을 입력했는지 비교합니다. 그것은 기본적으로 암호 검증 자로 작동합니다. 그러나 암호를 올바르게 쓰는 경우에도 암호가 잘못되었다고 말합니다. 누군가 손을 빌려 줄 수 있을까요?AS3의 조건부 IF
var par:String =(e.target.data.firstname); //this will set the par variable to some text
var kobol;
kobol = textfield2.text // this will set the kobol var to the input text value
trace(kobol);//this is just for me to make sure that this value was the same of the par var
trace(par);//this is just for me to make sure that this value was the same of the kobol var
if (kobol == par)
{
trace("got it");
}
else
{
trace(fail);
}
'trace' 호출은 무엇을 출력합니까? 실제 동일한 값입니까? – h2ooooooo
@ h2ooooooo 뜻, 같은 ** 값 ** – Cherniv
@ Cherniv 네, 정말로. – h2ooooooo