How do i convert this C if, elseif, else to Common Lisp?
Posted: Fri Sep 27, 2013 4:51 pm
Here is the statement::
i tried this:
but i get an invalid number of elements error:
i thought of doing progn but that doesnt represent the right condoitionals...and thought of cond but that will not eval the same way as a if, eleif, else statement...any help is appreciated..
Code: Select all
if( frameCount < 30 ){
accumulateBackground( frame );
}else if( frameCount == 30 ){
createModelsfromStats();
}else{
backgroundDiff( frame, mask1 );
Code: Select all
(if (< frame-count 30) (accumulate-background frame)
(if (equal frame-count 30) (create-models-from-stats))
(background-diff frame mask-1))
i thought of doing progn but that doesnt represent the right condoitionals...and thought of cond but that will not eval the same way as a if, eleif, else statement...any help is appreciated..