커뮤니티
부탁 드립니다.
2016-12-13 10:52:46
103
글번호 104931
도움주심에 감사드립니다.
시작일시와
종료일시를 지정하여
봉생성 갯수를 알려고 합니다만
1일분만 나타 납니다.
어덯게 수정 해야 하는지요?
INPUT:시작일자(20161212),종료일자(20161213),시작시각(080000),끝시각(070000);
Var : cond5(false),idx(0);
var99=시작일자;
VAR88=종료일자;
var10=시작시각;
var20=끝시각;
if sdate == var99 and (stime == var10 or (stime > var10 and stime[1] < var10)) then{
cond5 = true;
idx = 0;
}
if sdate ==VAR88 and stime == var20 or (stime > var20 and stime[1] < var20 ) Then
Cond5 = false;
if cond5 == true then{
idx = idx+1;
plot1(idx);
}
답변 1
예스스탁 예스스탁 답변
2016-12-13 12:40:12
안녕하세요
예스스탁입니다.
종료일시 지정부분에 괄호치기가 잘못되어 있었습니다.
INPUT:시작일자(20161212),종료일자(20161213),시작시각(080000),끝시각(070000);
Var : cond5(false),idx(0);
var99=시작일자;
VAR88=종료일자;
var10=시작시각;
var20=끝시각;
if sdate == var99 and (stime == var10 or (stime > var10 and stime[1] < var10)) then{
cond5 = true;
idx = 0;
}
if sdate == VAR88 and (stime == var20 or (stime > var20 and stime[1] < var20 )) Then
Cond5 = false;
if cond5 == true then{
idx = idx+1;
plot1(idx);
}
즐거운 하루되세요
> yes 님이 쓴 글입니다.
> 제목 : 부탁 드립니다.
> 도움주심에 감사드립니다.
시작일시와
종료일시를 지정하여
봉생성 갯수를 알려고 합니다만
1일분만 나타 납니다.
어덯게 수정 해야 하는지요?
INPUT:시작일자(20161212),종료일자(20161213),시작시각(080000),끝시각(070000);
Var : cond5(false),idx(0);
var99=시작일자;
VAR88=종료일자;
var10=시작시각;
var20=끝시각;
if sdate == var99 and (stime == var10 or (stime > var10 and stime[1] < var10)) then{
cond5 = true;
idx = 0;
}
if sdate ==VAR88 and stime == var20 or (stime > var20 and stime[1] < var20 ) Then
Cond5 = false;
if cond5 == true then{
idx = idx+1;
plot1(idx);
}
다음글
이전글