Last Updated:2025/12/04

(programming, informal) A binary operator that returns its first operand if that operand evaluates to true, and otherwise evaluates and returns its second operand.

音声機能が動作しない場合はこちらをご確認ください
See correct answer

Elvis operator

Edit Histories(0)
Source Word

Elvis operator

Noun
informal
Japanese Meaning
(プログラミングの文脈で使用される用語)第一オペランドが真(または真と評価される値)の場合、その値を返し、そうでない場合は第二オペランドを評価してその結果を返す二項演算子。
What is this buttons?

ユーザー入力をチェックするとき、入力が偽と評価される場合にデフォルト値を提供するために、最初のオペランドが真と評価されればそれを返し、そうでなければ2番目のオペランドを評価して返す二項演算子をよく使います。

plural

Dictionary quizzes to help you remember vocabulary

Edit Histories(0)

Login / Sign up

 

Download the app!
DiQt

DiQt

Free

★★★★★★★★★★