Here is an example of how truth value checking works in this API.
Objects from this API are considered false when:
Python Docs on Truth Value Checking
11 print(
"Document exists." )
15 print(
'Document does not exist' )
22 print(
'The array is empty' )
26 vertexArray.Insert( vertex )
30 print(
'The array is not empty' )
33 soundList = docExists.GetSoundList()
34 soundList.AddSound(
"someSound.mp3" )
35 soundItem = soundList.GetSoundItem( 0 )
39 print(
'This SoundItem exists' )
42 soundList.RemoveSound( soundItem )
44 print(
'This SoundItem no longer exists' )