ON *:INPUT:*:say $+($upper($left($1-,1)),$right($1-,$calc($len($1-) - 1))) | halt
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionalias -l type.phrase { if !$1 { halt } if $right($1,1) == $chr(63) { return interrogative } if $right($1,1) == $chr(33) { return exclamative } if $right($1,2) == $str($chr(46),2) { return pensive } if $right($1,1) == $chr(46) { return affirmative } return affirmative } ON *:INPUT:*:{ if $left($1,1) == / { goto noINPUT } var %tmp.i = $+($upper($left($1-,1)),$right($1-,$calc($len($1-) - 1))) if $type.phrase($1-) affirmative { var %tmp.i $+(%tmp.i,$chr(46)) } say %tmp.i | halt :noINPUT }