'Sharepoint calculated if statement not working

I've done a lot of googling and no solution I've found works for me. Under the screenshot I have translated what it says. 1

=IF(ISBLANK([ToDate]),"",[ToDate]-[DaysToWarn] This only throws an syntax error. I've tried many different solutions but none of which seems to work. I even built a replica in my test environment to see if that worked, which it did. I'm out of options and I don't know what I am doing wrong.



Solution 1:[1]

try this code

$prev_post = get_adjacent_post(false, '', true);
if(!empty($prev_post)) {
echo '<a href="' . get_permalink($prev_post->ID) . '" title="' . $prev_post->post_title . '">' . $prev_post->post_title . '</a>'; 
}

$next_post = get_adjacent_post(false, '', false);
if(!empty($next_post)) {
echo '<a href="' . get_permalink($next_post->ID) . '" title="' . $next_post->post_title . '">' . $next_post->post_title . '</a>';
}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dharman