Example on how to do 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' )