|
@@ -226,14 +226,20 @@ if $ARGS[0] = 'uni_period_third':
|
|
|
!!Second if called as a function with the additional ARGS[1] of monday, tuesday, wednesday or thursday, it will print on the screen the name of the classe and the time period.
|
|
|
if $university['enrolled_in']= 'teaching_studies':
|
|
|
if university['enrolled_in_semester'] = 1:
|
|
|
- if $ARGS[1] = 'monday' and $university['elective1'] ! '':
|
|
|
- $Result = '<<$university[''elective1'']>> (13:15 to 14:45)'
|
|
|
- elseif $ARGS[1] = 'tuesday' and $university['elective2'] ! '':
|
|
|
- $Result = '<<$university[''elective2'']>> (13:15 to 14:45)'
|
|
|
+ if $ARGS[1] = 'monday':
|
|
|
+ if $university['elective1'] ! '':
|
|
|
+ $Result = '<<$university[''elective1'']>> (13:15 to 14:45)'
|
|
|
+ end
|
|
|
+ elseif $ARGS[1] = 'tuesday':
|
|
|
+ if $university['elective2'] ! '':
|
|
|
+ $Result = '<<$university[''elective2'']>> (13:15 to 14:45)'
|
|
|
+ end
|
|
|
elseif $ARGS[1] = 'wednesday':
|
|
|
$Result = 'Learning Theories 101 (13:15 to 14:45)'
|
|
|
- elseif $ARGS[1] = 'thursday' and $university['elective3'] ! '':
|
|
|
- $Result = '<<$university[''elective3'']>> (13:15 to 14:45)'
|
|
|
+ elseif $ARGS[1] = 'thursday' :
|
|
|
+ if $university['elective3'] ! '':
|
|
|
+ $Result = '<<$university[''elective3'']>> (13:15 to 14:45)'
|
|
|
+ end
|
|
|
elseif week = 1 and $university['elective1'] ! '':
|
|
|
!!*nl
|
|
|
!!'Your next class will start at 13:15. You can go to it now or do other things first, but you need to be at the university plaza before it starts if you want to attend it.'
|
|
@@ -273,14 +279,20 @@ if $ARGS[0] = 'uni_period_third':
|
|
|
!!end
|
|
|
end
|
|
|
elseif university['enrolled_in_semester'] = 2:
|
|
|
- if $ARGS[1] = 'monday' and $university['elective1'] ! '':
|
|
|
- $Result = '<<$university[''elective1'']>> (13:15 to 14:45)'
|
|
|
- elseif $ARGS[1] = 'tuesday' and $university['elective2'] ! '':
|
|
|
- $Result = '<<$university[''elective2'']>> (13:15 to 14:45)'
|
|
|
+ if $ARGS[1] = 'monday':
|
|
|
+ if $university['elective1'] ! '':
|
|
|
+ $Result = '<<$university[''elective1'']>> (13:15 to 14:45)'
|
|
|
+ end
|
|
|
+ elseif $ARGS[1] = 'tuesday':
|
|
|
+ if $university['elective2'] ! '':
|
|
|
+ $Result = '<<$university[''elective2'']>> (13:15 to 14:45)'
|
|
|
+ end
|
|
|
elseif $ARGS[1] = 'wednesday':
|
|
|
$Result = 'Phsychology of a Student 101 (13:15 to 14:45)'
|
|
|
- elseif $ARGS[1] = 'thursday' and $university['elective3'] ! '':
|
|
|
- $Result = '<<$university[''elective3'']>> (13:15 to 14:45)'
|
|
|
+ elseif $ARGS[1] = 'thursday':
|
|
|
+ if $university['elective3'] ! '':
|
|
|
+ $Result = '<<$university[''elective3'']>> (13:15 to 14:45)'
|
|
|
+ end
|
|
|
elseif week = 1 and $university['elective1'] ! '':
|
|
|
!!*nl
|
|
|
!!'Your next class will start at 13:15. You can go to it now or do other things first, but you need to be at the university plaza before it starts if you want to attend it.'
|