else

条件を満たしていなければその行の命令を実行

else

解説

if命令と組み合わせて使用します。
詳しくはif命令の解説を参照してください。

サンプル

if a == 0 {
	mes "aは0です。"
} else {
	mes "aは0ではありません。"
}

関連項目

if条件を満たしていればその行の命令を実行

サンプル逆引き (91)

addline.hsp
battle.hsp
celputm.hsp
chase_cl.hsp
clipboard_history.hsp
cnvaxis.hsp
cnvaxis.hsp
d3m.hsp
d3m_techdemo.hsp
defcfunc.hsp
demo.hsp
demo_en.hsp
fullscr.hsp
fuujin_dish.hsp
gpm.hsp
groll.hsp
hidmon_test2.hsp
hsptv_test2.hsp
hsptv_test3.hsp
joystick3.hsp
joystick3.hsp
kakiget.hsp
kick.hsp
kick_dish.hsp
landing.hsp
light_test2.hsp
light_test3.hsp
light_test4.hsp
light_test5eff.hsp
multimon.hsp
named_pipe.hsp
obaqme.hsp
objsort.hsp
omedetai.hsp
power_info.hsp
pronama2.hsp
pronama3.hsp
pronama4.hsp
pronama5.hsp
pronama_box.hsp
reg_edit.hsp
sample_02_memolite.hsp
sample_03_basic.hsp
sample_09_imagetest.hsp
sample_7z.hsp
sample_ble.hsp
sample_camera_mf.hsp
sample_camera_mf_dual.hsp
sample_camera_preview.hsp
sample_clip.hsp
sample_dialog.hsp
sample_duckdb.hsp
sample_hash.hsp
sample_http_get.hsp
sample_llama.hsp
sample_player.hsp
sample_ruffle.hsp
sample_video_player.hsp
sample_webpdf.hsp
sample_websocket.hsp
sample_wgcapture.hsp
sample_winrtocr.hsp
sendmail.hsp
shoot.hsp
skybox.hsp
tamane1.hsp
tamane2.hsp
tamane2.hsp
tamane3.hsp
tamane4.hsp
tamane_face.hsp
test1.hsp
test1.hsp
test10.hsp
test10.hsp
test12.hsp
test5.hsp
test5.hsp
test9.hsp
tof2.hsp
tof2_dish.hsp
xsample_alphapaint.hsp
xsample_amano.hsp
xsample_Astro.hsp
xsample_diamond.hsp
xsample_gcube.hsp
xsample_gcube.hsp
xsample_Rocket.hsp
xsample_shiraho.hsp
xsample_verge.hsp
yopparai.hsp

情報

バージョン3.6
作成日2013/12/09
著作者onitama
URLhttp://hsp.tv/
備考ver3.6標準命令
タイプ内蔵命令
グループプログラム制御命令
対応環境
  • Windows 版 HSP
  • コマンドライン版 HSP
  • HSPLet
hs ファイルhsphelp\i_prog.hs