커뮤니티

부탁드립니다

프로필 이미지
yes
2015-11-26 17:40:12
151
글번호 92821
답변완료
항상 도움주셔서 깊이 감사 드립니다. 수식1의 input 의 지정법을 수식2와 같이 단순화 할수 있겠는지요? 미리 감사와 경배 드립니다 input : 현재일_0(20151123); input : 현재일_1(20151124); input : 현재일_2(20151125); input : 현재일_3(20151126); input : 현재일_4(20151127); if sdate == 현재일_0 and (stime == 080000 or (stime > 080000 and stime[1] < 080000)) then{ VAR1 == true;} if sdate == 현재일_1 and (stime == 080000 or (stime > 080000 and stime[1] < 080000)) then{ VAR2 == true;} if sdate == 현재일_2 and (stime == 080000 or (stime > 080000 and stime[1] < 080000)) then{ VAR3 == true; } if sdate == 현재일_3 and (stime == 080000 or (stime > 080000 and stime[1] < 080000)) then{ VAR4 == true;} if sdate == 현재일_4 and (stime == 080000 or (stime > 080000 and stime[1] < 080000)) then{ VAR5 == true;} input : 현재일_0(20151123); input : 현재일_1(현재일_0+1일); input : 현재일_2(현재일_0+2일); input : 현재일_3(현재일_0+3일); input : 현재일_4(현재일_0+4일);
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2015-11-26 18:09:29

안녕하세요 예스스탁입니다. 지정한 날짜이후 N일은 가능합니다. 아래와 같이 작성하시면 현재일_0이후에 8시가 되면 var1값이 1씩 증가를 합니다. var1 == 1일때 var1 == 2일때로 구분해서 이후에 이용하시면 됩니다. input : 현재일_0(20151123),N(5); var : Didx(0); if date != date[1] and date >= 현재일_0 Then Didx = Didx+1; if Didx >= 1 and DIdx <= N and (stime == 080000 or (stime > 080000 and stime[1] < 080000)) then var1 = var1+1; plot1(var1); 즐거운 하루되세요 > yes 님이 쓴 글입니다. > 제목 : 부탁드립니다 > 항상 도움주셔서 깊이 감사 드립니다. 수식1의 input 의 지정법을 수식2와 같이 단순화 할수 있겠는지요? 미리 감사와 경배 드립니다 input : 현재일_0(20151123); input : 현재일_1(20151124); input : 현재일_2(20151125); input : 현재일_3(20151126); input : 현재일_4(20151127); if sdate == 현재일_0 and (stime == 080000 or (stime > 080000 and stime[1] < 080000)) then{ VAR1 == true;} if sdate == 현재일_1 and (stime == 080000 or (stime > 080000 and stime[1] < 080000)) then{ VAR2 == true;} if sdate == 현재일_2 and (stime == 080000 or (stime > 080000 and stime[1] < 080000)) then{ VAR3 == true; } if sdate == 현재일_3 and (stime == 080000 or (stime > 080000 and stime[1] < 080000)) then{ VAR4 == true;} if sdate == 현재일_4 and (stime == 080000 or (stime > 080000 and stime[1] < 080000)) then{ VAR5 == true;} input : 현재일_0(20151123); input : 현재일_1(현재일_0+1일); input : 현재일_2(현재일_0+2일); input : 현재일_3(현재일_0+3일); input : 현재일_4(현재일_0+4일);