QlikWorld 2020 Global Conference. Join us to discover how to get the most from your data. Act fast. Register now and save.

Odd

integer_number 為奇數或零,Odd() 會傳回 True (-1)。若 integer_number 為偶數,會傳回 False (0);若 integer_number 為非整數,則會傳回 NULL

Syntax:  

Odd(integer_number)

Return data type: 布林

Examples and results:  

範例 結果

Odd( 3 )

傳回 -1,True

Odd( 2 * 10 )

傳回 0,False

Odd( 3.14 )

傳回 NULL

See also: