Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A silly question
#1
I dare say it's silly enough. I have a piece of code in Gimp that reads:
Code:
    postfix='_xcf.webp'
    if GS: postfix='-GS' + postfix
    if crop: postfix='-crop' + postfix
    theName=name + postfix
to variously modify the name of my issue file.
It works to do what I wish, but it looks as ungainly as a five-legged mammoth.
Please, is there some more elegant way to achieve the same?
I have been reading about 'lambdas', but nothing seemed applicable...

And, if my quesion is as foolish as I feel at posting it, please disregard it... Blush
Reply


Messages In This Thread
A silly question - by carmen - 10-27-2019, 08:30 PM
RE: A silly question - by Ofnuts - 10-27-2019, 09:07 PM
RE: A silly question - by carmen - 10-27-2019, 10:29 PM
RE: A silly question - by Ofnuts - 10-27-2019, 11:33 PM

Forum Jump: