![]() |
#1 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,267
Karma: 77935877
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Template: Changing a boolean column
What is the syntax for changing a boolean column (Action Chains again)?
If #onkobo is currently 'Yes,' I want to change it to 'No.' But otherwise, I want to change it to 'Yes.' Code:
program: if and( check_yes_no('#onkobo', '', '', 1), ) then ??? else ??? fi ![]() Last edited by ownedbycats; 03-10-2021 at 05:50 PM. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,524
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Return 'true', 'false', or '' as appropriate.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,267
Karma: 77935877
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
That works. Thank you
![]() |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need help changing template for Metadata Book Jacket | jecilop | Calibre | 14 | 10-14-2018 06:27 AM |
Help me with Custom Column template | nqk | Library Management | 3 | 09-23-2016 10:22 PM |
Copying Template Value to a column | rszasz | Library Management | 1 | 06-15-2016 11:16 AM |
How can I boolean OR several tags into one custom column? | bmix | Library Management | 3 | 01-09-2015 03:57 AM |
Boolean custom column values | sengian | Library Management | 4 | 01-05-2012 05:39 PM |