Jun-05-2019, 07:24 PM
i get the error "continue not properly in loop". i cant find examples that dont use it like this...
i want the code to exit and 're-enter' the loop when it encounters 'continue', if you notice before the 'continuation' command, there is a variable assignment which i need.
whats the proper use of 'continuation' for this code? thanks
i want the code to exit and 're-enter' the loop when it encounters 'continue', if you notice before the 'continuation' command, there is a variable assignment which i need.
whats the proper use of 'continuation' for this code? thanks
1 2 3 4 5 6 7 8 9 10 11 |
def cmp (row): if col[ 'Close' ] > col[ 'prev' ]: col[ 'trade2' ] = '+' x = '+' continue elif col[ 'Close' ] < col[ 'prev' ]: col[ 'trade2' ] = '-' x = '-' continue elif col[ 'Close' ] = = col[ 'prev' ]: col[ 'trade2' ] = x |