Dont forget to check if variable is valid before slicing object
#if $cutie.comment
$cutie.comment[0:100]
#end if
Dont forget to put if exists
else you will get unscriptable object error
#if $cutie.comment
$cutie.comment[0:100]
#end if
Dont forget to put if exists
else you will get unscriptable object error
at 3:14 AM
Labels: cheetah python gotchas
No comments:
Post a Comment